mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Use 'git svn find-rev' in git-svnrevert instead of shell script fu.
Thanks Chandler! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d15d29e7c8
commit
276b8549ee
@ -14,10 +14,9 @@ fi
|
||||
|
||||
COMMIT=$1
|
||||
|
||||
SVN_REVISION=$(git log -1 $COMMIT | grep git-svn-id | tr -s "@" " " | cut -f 4 -d " ")
|
||||
|
||||
if [ -z "$SVN_REVISION" ]; then
|
||||
echo "Error! Given commit is not a git-svn revision!"
|
||||
SVN_REVISION=$(git svn find-rev "$COMMIT")
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error! Could not find an svn revision for commit $COMMIT!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user