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

[PATCH] git-gui: fix typo in GIT-VERSION-GEN, "/dev/null" not "/devnull"

From
APAndy Parkins <andyparkins@gmail.com>
Date
Feb 13, 2007, 15:26 UTC
Message-ID
<200702131526.17153.andyparkins@gmail.com>
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
---
I think this would make git-gui get the wrong version number as the script
wouldn't complete successfully.
 git-gui/GIT-VERSION-GEN |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-gui/GIT-VERSION-GEN b/git-gui/GIT-VERSION-GEN
index 8fac8cb..9966126 100755
--- a/git-gui/GIT-VERSION-GEN
+++ b/git-gui/GIT-VERSION-GEN
@@ -10,7 +10,7 @@ tree_search ()
 {
 	head=$1
 	tree=$2
-	for p in $(git rev-list --parents --max-count=1 $head 2>/devnull)
+	for p in $(git rev-list --parents --max-count=1 $head 2>/dev/null)
 	do
 		test $tree = $(git rev-parse $p^{tree} 2>/dev/null) &&
 		vn=$(git describe --abbrev=4 $p 2>/dev/null) &&
-- 
1.5.0.rc4.365.g5eff6
Next: Shawn O. Pearce
Message 1 of 2 in “git-gui: fix typo in GIT-VERSION-GEN, "/dev/null" not "/devnull"”
  1. git-gui: fix typo in GIT-VERSION-GEN, "/dev/null" not "/devnull"Andy Parkins, Feb 13, 2007
  2. Shawn O. PearceFeb 13, 2007

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.