summaryrefslogtreecommitdiff
path: root/tcwg-llvm-common.sh
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2017-05-08 19:34:57 +0100
committerRenato Golin <renato.golin@linaro.org>2017-05-08 19:36:47 +0100
commitb50982a58486e5bc6dfc9f4c181def3172e57522 (patch)
treeb59be5c398a88d73ffbe83e7764f69f97c6d0789 /tcwg-llvm-common.sh
parent22259b91409bac424d562ac7519bf70d34df0996 (diff)
svn-git-hash.pl: Use git -C instead of push/pop dir
Change-Id: I419b36b027a4d979d5152274a0095bbe4596d4a9
Diffstat (limited to 'tcwg-llvm-common.sh')
-rwxr-xr-xtcwg-llvm-common.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/tcwg-llvm-common.sh b/tcwg-llvm-common.sh
index 4a431180..c889256b 100755
--- a/tcwg-llvm-common.sh
+++ b/tcwg-llvm-common.sh
@@ -56,13 +56,10 @@ update_git() {
local BASEDIR
BASEDIR=$(dirname "$(readlink -f "$0")")
- pushd "$BASE"
- hash=$("$BASEDIR/svn-git-hash.pl" "$REV" | awk '{print $2}')
-
# We don't need to create a branch with the commit, as the clones are new
# Should be ok to stay in a detached head state for this purpose
+ hash=$("$BASEDIR/svn-git-hash.pl" "$BASE" "$REV" | awk '{print $2}')
git checkout "$hash"
- popd
}
# Find the SVN revision of a git-svn repository