OSDN Git Service

update-index: add test for chmod flags
authorThomas Gummerer <t.gummerer@gmail.com>
Wed, 14 Sep 2016 21:07:45 +0000 (22:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Sep 2016 22:03:49 +0000 (15:03 -0700)
commit22433ce4617b6ff30c9e9bf03b85d4bb244c3dec
treee7bc5d184519507b1f6fda657cf99aef1a2cb806
parent840529d52c1c851f76ccc19daa88e740aac789cb
update-index: add test for chmod flags

Currently there is no test checking the expected behaviour when multiple
chmod flags with different arguments are passed.  As argument handling
is not in line with other git commands it's easy to miss and
accidentally change the current behaviour.

While there, fix the argument type of chmod_path, which takes an int,
but had a char passed in.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-index.c
t/t2107-update-index-basic.sh