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

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>

Shawn O. Pearce committed Jul 12, 2007 at 02:45 UTC b215883de9322b8b475a04b4768d6ba5455373d1
1 file changed +1 -1
lib/commit.tcl
+1 -1
@@ -258,7 +258,7 @@ proc commit_committree {fd_wt curHEAD msg} {
258 # -- Verify this wasn't an empty change.
259 #
260 if {$commit_type eq {normal}} {
261 - set fd_ot [open "| git cat-file commit $PARENT" r]
261 + set fd_ot [git_read cat-file commit $PARENT]
262 fconfigure $fd_ot -encoding binary -translation lf
263 set old_tree [gets $fd_ot]
264 close $fd_ot