aboutsummaryrefslogtreecommitdiff
path: root/lib/commit.tcl
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-07-12 02:45:23 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-07-12 02:45:23 -0400
commitb215883de9322b8b475a04b4768d6ba5455373d1 (patch)
treee1b6750cdcba7dbed1b562b3b94c726653a992ae /lib/commit.tcl
parentf31b6ff747afeb204299b7a67ce2ec59beb33b7d (diff)
downloadgit-b215883de9322b8b475a04b4768d6ba5455373d1.tar.gz
git-b215883de9322b8b475a04b4768d6ba5455373d1.tar.xz
git-gui: Change prior tree SHA-1 verification to use git_read
This cat-file was done on maint, where we did not have git_read available to us. But here on master we do, so we should make use of it. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/commit.tcl')
-rw-r--r--lib/commit.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/commit.tcl b/lib/commit.tcl
index 3172d7cb6..46a78c158 100644
--- a/lib/commit.tcl
+++ b/lib/commit.tcl
@@ -258,7 +258,7 @@ proc commit_committree {fd_wt curHEAD msg} {
# -- Verify this wasn't an empty change.
#
if {$commit_type eq {normal}} {
- set fd_ot [open "| git cat-file commit $PARENT" r]
+ set fd_ot [git_read cat-file commit $PARENT]
fconfigure $fd_ot -encoding binary -translation lf
set old_tree [gets $fd_ot]
close $fd_ot