Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git.sh: quote all paths
author
Jonas Fonseca
<fonseca@diku.dk>
Mon, 10 Oct 2005 21:14:06 +0000
(14:14 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 10 Oct 2005 21:14:06 +0000
(14:14 -0700)
This makes it handle spaces in paths.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
d52920e
)
diff --git
a/git.sh
b/git.sh
index dc383eddea5bf96a1208872299a4c2370a2f7360..1c73ca1c20be9861cce22ea4ca99f60d9e3d9173 100755
(executable)
--- a/
git.sh
+++ b/
git.sh
@@
-1,7
+1,7
@@
#!/bin/sh
cmd=
-path=$(dirname
$0
)
+path=$(dirname
"$0"
)
case "$#" in
0) ;;
*) cmd="$1"
@@
-11,7
+11,7
@@
case "$#" in
echo "git version @@GIT_VERSION@@"
exit 0 ;;
esac
- test -x
$path/git-$cmd && exec $path/git-$cmd
"$@" ;;
+ test -x
"$path/git-$cmd" && exec "$path/git-$cmd"
"$@" ;;
esac
echo "Usage: git COMMAND [OPTIONS] [TARGET]"