Updated nameing (svn -> git) & fixed whitespaces.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
# --- Martin Holst Swende <martin@swende.se>
|
||||
|
||||
|
||||
# Clear environment locale so that svn will not use localized strings
|
||||
# Clear environment locale so that git will not use localized strings
|
||||
$ENV{'LC_ALL'} = "C";
|
||||
$ENV{'LANG'} = "C";
|
||||
|
||||
@@ -16,9 +16,9 @@ my $gitbranch = `git rev-parse --abbrev-ref HEAD`;
|
||||
my $clean = 2;
|
||||
my @compiletime = gmtime();
|
||||
|
||||
my $fullgitinfo= $gitbranch . '/'.$gitversion;
|
||||
my $fullgitinfo = $gitbranch . '/' . $gitversion;
|
||||
|
||||
$fullgitinfo=~ s/(\s)//g;
|
||||
$fullgitinfo =~ s/(\s)//g;
|
||||
|
||||
# Crop so it fits within 50 characters
|
||||
$fullgitinfo =~ s/.{50}\K.*//s;
|
||||
|
||||
Reference in New Issue
Block a user