From d47b8963a2095ccf14cbaac07c9c02e58d08a685 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 26 Mar 2013 12:45:13 +0100 Subject: [PATCH] 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). --- Scripts/developer_scripts/create_internal_release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/developer_scripts/create_internal_release b/Scripts/developer_scripts/create_internal_release index d93f8608aa5..95389c738ac 100755 --- a/Scripts/developer_scripts/create_internal_release +++ b/Scripts/developer_scripts/create_internal_release @@ -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"; # }