Skip to content

Commit

Permalink
git-gui: Remove unnecessary /dev/null redirection.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed Mar 1, 2007
1 parent 51bd9d7 commit c3e8a0a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1299,14 +1299,8 @@ A rescan will be automatically started now.
# -- Create the commit.
#
set cmd [list git commit-tree $tree_id]
set parents [concat $PARENT $MERGE_HEAD]
if {[llength $parents] > 0} {
foreach p $parents {
lappend cmd -p $p
}
} else {
# git commit-tree writes to stderr during initial commit.
lappend cmd 2>/dev/null
foreach p [concat $PARENT $MERGE_HEAD] {
lappend cmd -p $p
}
lappend cmd <$msg_p
if {[catch {set cmt_id [eval exec $cmd]} err]} {
Expand Down

0 comments on commit c3e8a0a

Please sign in to comment.