git-gui: Use a smaller pipe buffer for update-index.
[gitweb.git] / git-gui
diff --git a/git-gui b/git-gui
index b1a90e66616f0b0c5ff6cb97c77141e04d4e01f4..7e28328cf0d5eca0d5c3085954e5bff5c135594f 100755 (executable)
--- a/git-gui
+++ b/git-gui
@@ -1171,7 +1171,11 @@ proc update_index {pathList} {
                $totalCnt \
                0.0]
        set fd [open "| git update-index --add --remove -z --stdin" w]
-       fconfigure $fd -blocking 0 -translation binary
+       fconfigure $fd \
+               -blocking 0 \
+               -buffering full \
+               -buffersize 512 \
+               -translation binary
        fileevent $fd writable [list \
                write_update_index \
                $fd \