Change the way the Git branch is displayed in test results

Now the commit hash will be display, and also all the local branch names
that correspond (similarly to the use of --decorate in git-log).
This commit is contained in:
Laurent Rineau
2013-03-26 12:45:13 +01:00
parent 29738420ba
commit d47b8963a2
@@ -207,7 +207,7 @@ sub install_packages() {
}
close(LOG_CONFLICTS);
unlink 'temppack.tar';
( -d "$ALLPACKAGESDIR/.git" ) && system("echo 'SCM branch:' > .scm-branch; git --git-dir=$ALLPACKAGESDIR/.git --work-tree=$ALLPACKAGESDIR status --short -b | head -1 >> .scm-branch");
( -d "$ALLPACKAGESDIR/.git" ) && system("git --git-dir=$ALLPACKAGESDIR/.git --work-tree=$ALLPACKAGESDIR log -n1 '--format=format:SCM branch:%n%H %d' > .scm-branch");
# foreach my $file (sort keys(%files)) {
# print "$files{$file}: $file\n";
# }