threads / patch / 5909

patchgit-revert: use GIT_DIR shell variable for the MERGE_MSG

Subject: [PATCH] git-revert: use GIT_DIR shell variable for the MERGE_MSG

## tl;dr

One message between Oct 12, 2006 and Oct 12, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Luben Tuikov· Oct 12, 2006, 22:11 UTC · lore
Ooops!
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
---
 git-revert.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to git-revert.sh +1 −1
diff --git a/git-revert.sh b/git-revert.sh
index 2e23cf4..6eab3c7 100755
--- a/git-revert.sh
+++ b/git-revert.sh
@@ -145,7 +145,7 @@ git-read-tree -m -u --aggressive $base $
 result=$(git-write-tree 2>/dev/null) || {
     echo >&2 "Simple $me fails; trying Automatic $me."
     git-merge-index -o git-merge-one-file -a || {
-	    mv -f .msg .git/MERGE_MSG
+	    mv -f .msg "$GIT_DIR/MERGE_MSG"
 	    {
 		echo '
 Conflicts:
-- 
1.4.3.rc2.gd9edb

← back to recent threads