[PATCH 1/5] t9350: point out that refs are not updated correctly
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Jul 24, 2011, 14:21 UTC
- Message-ID
- <1311517282-24831-2-git-send-email-srabbelier@gmail.com>
- In-Reply-To
- <1311517282-24831-1-git-send-email-srabbelier@gmail.com>
This happens only when the corresponding commits are not exported in the current fast-export run. This can happen either when the relevant commit is already marked, or when the commit is explicitly marked as UNINTERESTING with a negative ref by another argument.
This breaks fast-export basec remote helpers.
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com> ---
Obviously the real occurance of the breakage is not as artificial as this test case, but it's a very simple minimal reproducer.
t/t9350-fast-export.sh | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/t/t9350-fast-export.sh b/t/t9350-fast-export.sh index f823c05..ed0417a 100755 --- a/t/t9350-fast-export.sh +++ b/t/t9350-fast-export.sh @@ -414,4 +414,15 @@ test_expect_success SYMLINKS 'directory becomes symlink' ' (cd result && git show master:foo) ' +cat > expected << EOF +reset refs/heads/master +from $(git rev-parse master) + +EOF + +test_expect_failure 'refs are updated even if no commits need to be exported' ' + git fast-export master..master > actual && + test_cmp expected actual +' + test_done
-- 1.7.6.385.g91185.dirty