File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 273
273
git : git.sh Makefile
274
274
rm -f $@ + $@
275
275
sed -e ' 1s|#!.*/sh|#!$(SHELL_PATH)|' \
276
- -e ' s/@@GIT_VERSION@@/$(GIT_VERSION)/g' < $@ .sh > $@ +
276
+ -e ' s/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
277
+ -e ' s/@@X@@/$(X)/g' < $@ .sh > $@ +
277
278
chmod +x $@ +
278
279
mv $@ + $@
279
280
Original file line number Diff line number Diff line change @@ -11,11 +11,17 @@ case "$#" in
11
11
echo " git version @@GIT_VERSION@@"
12
12
exit 0 ;;
13
13
esac
14
-
15
- test -x $path /git-$cmd && exec $path /git-$cmd " $@ " ;;
16
-
17
- # In case we're running on Cygwin...
18
- test -x $path /git-$cmd .exe && exec $path /git-$cmd .exe " $@ " ;;
14
+
15
+ test -x $path /git-$cmd && exec $path /git-$cmd " $@ "
16
+
17
+ case ' @@X@@' in
18
+ ' ' )
19
+ ;;
20
+ * )
21
+ test -x $path /git-$cmd @@X@@ && exec $path /git-$cmd @@X@@ " $@ "
22
+ ;;
23
+ esac
24
+ ;;
19
25
esac
20
26
21
27
echo " Usage: git COMMAND [OPTIONS] [TARGET]"
You can’t perform that action at this time.
0 commit comments