Change to a git repo before checking git-svn version

TEST=none
BUG=none
R=maruel

Patch contributed by Nasser <nasser@codeaurora>

Review URL: http://codereview.chromium.org/530001

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35817 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 16 years ago
parent 0dfc4ef271
commit 8d4c15c3ba

@ -42,9 +42,10 @@ function test_git_svn {
# Update git checkouts prior the cygwin check, we don't want to use msysgit. # Update git checkouts prior the cygwin check, we don't want to use msysgit.
if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/.git" ] if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/.git" ]
then then
# Skip this call since it fails outside a git checkout. cd $base_dir
#test_git_svn test_git_svn
(cd "$base_dir"; git svn rebase -q -q) git svn rebase -q -q
cd - > /dev/null
fi fi
if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/git-cl-repo/.git" ] if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/git-cl-repo/.git" ]

Loading…
Cancel
Save