Skip to content

Commit

Permalink
git-gui: Change prior tree SHA-1 verification to use git_read
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed Jul 12, 2007
1 parent f31b6ff commit b215883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commit.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b215883

Please sign in to comment.