Skip to content

Commit c3e8a0a

Browse files
committed
git-gui: Remove unnecessary /dev/null redirection.
Git 1.5.0 and later no longer output useless messages to standard error when making the initial (or what looks to be) commit of a repository. Since /dev/null does not exist on Windows in the MinGW environment we can't redirect there anyway. Since Git does not output anymore, I'm removing the redirection. Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 51bd9d7 commit c3e8a0a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

git-gui.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,14 +1299,8 @@ A rescan will be automatically started now.
12991299
# -- Create the commit.
13001300
#
13011301
set cmd [list git commit-tree $tree_id]
1302-
set parents [concat $PARENT $MERGE_HEAD]
1303-
if {[llength $parents] > 0} {
1304-
foreach p $parents {
1305-
lappend cmd -p $p
1306-
}
1307-
} else {
1308-
# git commit-tree writes to stderr during initial commit.
1309-
lappend cmd 2>/dev/null
1302+
foreach p [concat $PARENT $MERGE_HEAD] {
1303+
lappend cmd -p $p
13101304
}
13111305
lappend cmd <$msg_p
13121306
if {[catch {set cmt_id [eval exec $cmd]} err]} {

0 commit comments

Comments
 (0)