summaryrefslogtreecommitdiff
path: root/svn-git-hash.pl
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2017-05-10 19:17:39 +0100
committerRenato Golin <renato.golin@linaro.org>2017-05-10 19:17:39 +0100
commitf748f46846a6613134774344c637ca271bfe15a4 (patch)
tree1b46f2f65ec9367439a7e492f84a2f33963f5cce /svn-git-hash.pl
parenteff23bef06864fe186bcc3185932fbe14d08e776 (diff)
svn-git-hash.pl: use full hash to disambiguate from pathspec
Change-Id: If99ae85970cf1617a79dcceb47f44a5252b70b51
Diffstat (limited to 'svn-git-hash.pl')
-rwxr-xr-xsvn-git-hash.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/svn-git-hash.pl b/svn-git-hash.pl
index 82e8b8f7..9e92c655 100755
--- a/svn-git-hash.pl
+++ b/svn-git-hash.pl
@@ -46,7 +46,7 @@ open LOG, "git -C \"$BASE\" log|" || die "Can't run git log command: $!\n";
foreach my $line (<LOG>) {
# Make sure we always update git hashes to the latest
# 11 chars, to be easy to compare to git log --pretty=oneline
- if ($line =~ /^commit ([0-9a-f]{11})/) {
+ if ($line =~ /^commit ([0-9a-f]+)/) {
$git = $1;
next;
}