File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -153,10 +153,13 @@ while [ $# -gt 0 ]; do
153
153
OUTPUT=" ${1# -o=} "
154
154
elif [[ " $1 " =~ ^-o ]]; then
155
155
OUTPUT=" ${1# -o} "
156
- elif [[ " $1 " =~ ^- ]]; then
156
+ elif [[ " $1 " =~ ^-.. ]]; then
157
157
T=" $1 "
158
158
shift
159
159
set -- ' ' " ${T: 0: 2} " " -${T: 2} " " $@ "
160
+ elif [[ " $1 " =~ ^- ]]; then
161
+ echo " Error: Unrecognized argument $1 " >&1
162
+ exit 1
160
163
else
161
164
POSITIONAL+=(" $1 " )
162
165
fi
Original file line number Diff line number Diff line change @@ -336,6 +336,10 @@ while [ $# -gt 0 ]; do
336
336
NO_RECURSIVE=YES
337
337
shift
338
338
;;
339
+ --flat)
340
+ echo " Error: --flat is no longer supported. Please see man git-gets for more information." >&1
341
+ exit 1
342
+ ;;
339
343
* )
340
344
if [[ " $1 " =~ ^-j ]]; then
341
345
PARALLEL=" ${1# -j} "
@@ -350,10 +354,13 @@ while [ $# -gt 0 ]; do
350
354
OUTPUT=" ${1# -o=} "
351
355
elif [[ " $1 " =~ ^-o ]]; then
352
356
OUTPUT=" ${1# -o} "
353
- elif [[ " $1 " =~ ^- ]]; then
357
+ elif [[ " $1 " =~ ^-.. ]]; then
354
358
T=" $1 "
355
359
shift
356
360
set -- ' ' " ${T: 0: 2} " " -${T: 2} " " $@ "
361
+ elif [[ " $1 " =~ ^- ]]; then
362
+ echo " Error: Unrecognized argument $1 " >&1
363
+ exit 1
357
364
else
358
365
POSITIONAL+=(" $1 " )
359
366
fi
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ make the downloaded repository look as similar as one
76
76
created by an ordinary \fB git clone \fR at the cost of a little bit
77
77
more network bandwidth and disk space.
78
78
You cannot use it together with \fB -g \fR nor \fB -t \fR .
79
+ Besides, you cannot use \fB -- <path> \fR when \fB -x \fR is set.
79
80
Specifically, using \fB -x \fR has the following effects:
80
81
.IP \[bu ] 2
81
82
All commits will be downloaded: you can still view the full history
@@ -104,6 +105,7 @@ cost compared to that with neither of \fB-x\fR nor \fB-g\fR.
104
105
However, the actual respository may not be as exploitable as before.
105
106
See the discussion of \fB -x \fR to see the difference.
106
107
You cannot use it together with \fB -x \fR nor \fB -t \fR .
108
+ Besides, you cannot use \fB -- <path> \fR when \fB -g \fR is set.
107
109
.RE
108
110
.PP
109
111
-t, --tag-file=VERSION
You can’t perform that action at this time.
0 commit comments