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:
@@ -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";
|
||||
# }
|
||||
|
||||
Reference in New Issue
Block a user