diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-27 23:17:37 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-27 23:24:41 -0600 |
commit | 4038f2467cc97ab964880dd39e1227fcf4f42a7b (patch) | |
tree | 3f7e4fb8c70b3b3e6160641071eb64476e3955f0 /solenv/bin | |
parent | db36904f41b577f61033f7c4b6df922045928b86 (diff) |
fix: BUILDDIR is not always SRCDIR
Change-Id: I6028fe295e467aa448d8503097be0c80a42908ed
Diffstat (limited to 'solenv/bin')
-rw-r--r-- | solenv/bin/modules/installer/scriptitems.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/bin/modules/installer/scriptitems.pm b/solenv/bin/modules/installer/scriptitems.pm index 77fa1d3619b9..cd4b1413a85e 100644 --- a/solenv/bin/modules/installer/scriptitems.pm +++ b/solenv/bin/modules/installer/scriptitems.pm @@ -672,7 +672,7 @@ sub replace_setup_variables if ( $localbuild =~ /^\s*(\w+?)(\d+)\s*$/ ) { $localbuild = $2; } # using "680" instead of "src680" - my $buildidstring = `git log -n 1 --pretty=format:"%H"`; + my $buildidstring = `cd $ENV{'SRCDIR'} 2>&1 >/dev/null && git log -n 1 --pretty=format:"%H"`; if ($? || !$buildidstring) { $buildidstring = $localbuild . $localminor . "(Build:" . $installer::globals::buildid . ")"; } |