git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
LTLuben Tuikov <ltuikov@yahoo.com>
Date
Oct 12, 2006, 22:11 UTC
Message-ID
<20061012221107.73011.qmail@web31804.mail.mud.yahoo.com>
Ooops!
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
---
 git-revert.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
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
Message 1 of 1 in “git-revert: use GIT_DIR shell variable for the MERGE_MSG”
  1. git-revert: use GIT_DIR shell variable for the MERGE_MSGLuben Tuikov, Oct 12, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.