Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: enter_chroot.sh

Issue 3529005: Fix enter_chroot.sh so that it can be run from a cwd that is not in a git repository (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: Changed to always pull revision from trunk/src/scripts Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: enter_chroot.sh
diff --git a/enter_chroot.sh b/enter_chroot.sh
index 5b412f4d6e5646c321ef108be76611b1c94939b1..c0e45ba2ab4d7f147798559a7a6ede1e2f910cb4 100755
--- a/enter_chroot.sh
+++ b/enter_chroot.sh
@@ -272,7 +272,7 @@ setup_env
# hand-sync'd some subdirs and edited files in others.
# In that case, check against origin/HEAD and mark** revision.
# Use git:8 chars of sha1
-REVISION=$(git rev-parse --short=8 HEAD)
+REVISION=$(cd ${FLAGS_trunk}/src/scripts ; git rev-parse --short=8 HEAD)
CHROOT_PASSTHRU="CHROMEOS_REVISION=$REVISION BUILDBOT_BUILD=$FLAGS_build_number CHROMEOS_OFFICIAL=$CHROMEOS_OFFICIAL"
if [ -d "$HOME/.subversion" ]; then
# Bind mounting .subversion into chroot
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698