@matheusbsbs / matheus-bagliano / commits / c3e8a0a4dd
Fork 0

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 <spearce@spearce.org>

Shawn O. Pearce committed Mar 1, 2007 at 14:37 UTC c3e8a0a4ddb7d32970c49117e0386a3b1c182413
1 file changed +2 -8
git-gui.sh
+2 -8
@@ -1299,14 +1299,8 @@ A rescan will be automatically started now.
1299 # -- Create the commit.
1300 #
1301 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
1304 }
1305 lappend cmd <$msg_p
1306 if {[catch {set cmt_id [eval exec $cmd]} err]} {