diff options
author | Andy Parkins <andyparkins@gmail.com> | 2007-02-13 14:23:58 +0000 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-13 09:33:09 -0800 |
commit | 72f627d2bc860c560e4ea4ee172982b1d38ceca8 (patch) | |
tree | b3c6c5287f43893a309da867f4198dcdef7cc658 /git-gui | |
parent | git-gc: run pack-refs by default unless the repo is bare (diff) | |
download | tgif-72f627d2bc860c560e4ea4ee172982b1d38ceca8.tar.xz |
Fix potential command line overflow in hooks--update
In a repository with a large number of refs, the following command line
could easily overflow the command line size limitations
git-rev-list $newref $(git-rev-parse --not --all)
Fortunately, git-rev-list already has the means to cope with this
situation with the --stdin switch
git-rev-parse --not --all | git-rev-list --stdin $newref
Which is exactly what this patch does.
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-gui')
0 files changed, 0 insertions, 0 deletions