Skip to content
Browse files

Better bash.

  • Loading branch information...
1 parent 60efc73 commit 501639eac607f77b481b45816ebecb5986f76b0f Brian Donovan committed Sep 30, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/mvgit
View
4 bin/mvgit
@@ -14,7 +14,7 @@
git_root=$PWD
path=""
-until [ -d $git_root/.git || "$git_root" = "/" ]; do
+until [[ -d "$git_root/.git" || "$git_root" = "/" ]]; do
path=`basename $git_root`/$path
git_root=`dirname $git_root`
done
@@ -72,6 +72,8 @@ else
fi
fi
+echo "Using svn url: $svn_url"
+
if [ -z "$name" ]; then
name=`basename $svn_url`
fi

0 comments on commit 501639e

Please sign in to comment.
Something went wrong with that request. Please try again.