X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Flib;h=94c4c7969ba0702e5a3bd6ff03beef9ee3ad683b;hb=c4ed4e776fe57b77e1f4c2194a8377b09690ec04;hp=1d2d06ade6fd4a6fa1857b2d4360822c92eb4139;hpb=c2d43f9859a861f8522c32bb42e9f74fd229b6bf;p=dgit.git diff --git a/tests/lib b/tests/lib index 1d2d06ad..94c4c796 100644 --- a/tests/lib +++ b/tests/lib @@ -103,7 +103,7 @@ t-clean-on-branch () { t-git-get-ref () { local ref=$1 - git-show-ref -d $1 | perl -ne ' + git show-ref -d $1 | perl -ne ' $x = $1 if m#^(\w+) \Q'$1'\E(?:\^\{\})?$#; END { print "$x\n" if length $x; } '