mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Use 'git svn find-rev' in git-svnrevert instead of shell script fu.
Thanks Chandler! llvm-svn: 180592
This commit is contained in:
parent
9bb33b83ef
commit
2188c467aa
@ -14,10 +14,9 @@ fi
|
|||||||
|
|
||||||
COMMIT=$1
|
COMMIT=$1
|
||||||
|
|
||||||
SVN_REVISION=$(git log -1 $COMMIT | grep git-svn-id | tr -s "@" " " | cut -f 4 -d " ")
|
SVN_REVISION=$(git svn find-rev "$COMMIT")
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
if [ -z "$SVN_REVISION" ]; then
|
echo "Error! Could not find an svn revision for commit $COMMIT!"
|
||||||
echo "Error! Given commit is not a git-svn revision!"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user