summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-03-01 19:37:34 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-03-01 19:37:34 (GMT)
commitc3e8a0a4ddb7d32970c49117e0386a3b1c182413 (patch)
tree57e4096fcdac52b708655bd8c9a1396446027c07 /git-gui.sh
parent51bd9d7b8cf29e0e441531fb0a671cc7093f278b (diff)
downloadgit-c3e8a0a4ddb7d32970c49117e0386a3b1c182413.zip
git-c3e8a0a4ddb7d32970c49117e0386a3b1c182413.tar.gz
git-c3e8a0a4ddb7d32970c49117e0386a3b1c182413.tar.bz2
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>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 743099c..1981827 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -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]} {