diff options
author | Mike Frysinger <vapier@chromium.org> | 2015-03-12 02:26:19 -0400 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-13 07:04:19 +0000 |
commit | d574f070c52f913790dd0c69b178de3dbeac3078 (patch) | |
tree | 30d509208f8ca55bc1268ceba51bf72e04b494ee /scripts | |
parent | ae00d1b6a70465afcd547fa16f24c47207858ffe (diff) | |
download | vboot-d574f070c52f913790dd0c69b178de3dbeac3078.tar.gz |
avoid git status
When trying to build out-of-tree, running `git status` will attempt to
write to the .git/ dir which causes a sandbox violation.
Since this code doesn't seem to actually do anything, drop it.
BUG=chromium:466499
TEST=precq still passes
TEST=build now passes when building out of tree
TEST=`./scripts/getversion.sh` produces good output with clean & dirty trees
BRANCH=None
Change-Id: Ia722fedef692876ffc87109b3a1d2e4a76235532
Reviewed-on: https://chromium-review.googlesource.com/259541
Trybot-Ready: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/getversion.sh | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/getversion.sh b/scripts/getversion.sh index b6f2bd4c..d505579f 100755 --- a/scripts/getversion.sh +++ b/scripts/getversion.sh @@ -21,8 +21,6 @@ if ghash=$(git rev-parse --short --verify HEAD 2>/dev/null); then fi # avoid putting the -dirty attribute if only the timestamp # changed - git status > /dev/null 2>&1 - dirty=$(sh -c "[ '$(git diff-index --name-only HEAD)' ] \ && echo '-dirty'") ver="${ver_major}.${ver_branch}.${numcommits}-${ghash}${dirty}" |