aboutsummaryrefslogtreecommitdiff
path: root/git.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-10 16:03:43 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-10 16:03:43 -0700
commitb12bbd5986e1fae4120d7a415c1271c0273cad7e (patch)
tree4d00a9874001944444ade975ba9a54e777bbec5c /git.sh
parentcc1621e2a02ed2a408571ed6f6ba84de2166e334 (diff)
parent18e410f1eaaf8e3e82dca9f124782b099ead7612 (diff)
downloadgit-b12bbd5986e1fae4120d7a415c1271c0273cad7e.tar.gz
git-b12bbd5986e1fae4120d7a415c1271c0273cad7e.tar.xz
Merge branch 'fixes'
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git.sh')
-rwxr-xr-xgit.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/git.sh b/git.sh
index 7400c1625..94940aea2 100755
--- a/git.sh
+++ b/git.sh
@@ -1,7 +1,7 @@
#!/bin/sh
cmd=
-path=$(dirname $0)
+path=$(dirname "$0")
case "$#" in
0) ;;
*) cmd="$1"
@@ -12,13 +12,14 @@ case "$#" in
exit 0 ;;
esac
- test -x $path/git-$cmd && exec $path/git-$cmd "$@"
+ test -x "$path/git-$cmd" && exec "$path/git-$cmd" "$@"
case '@@X@@' in
'')
;;
*)
- test -x $path/git-$cmd@@X@@ && exec $path/git-$cmd@@X@@ "$@"
+ test -x "$path/git-$cmd@@X@@" &&
+ exec "$path/git-$cmd@@X@@" "$@"
;;
esac
;;