diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-02-22 12:28:28 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-22 12:28:28 -0800 |
commit | 7cf6232e2c15a0052c78655d7014645cd20a377c (patch) | |
tree | 01c4cf8a97024da88fae20236cfe2f6cf374dbea /t | |
parent | dcc883dcbc25276784bb98dce5927d76d2ed5c6c (diff) | |
parent | b0a4264277b7968741580093e7ea1e366943d297 (diff) | |
download | git-7cf6232e2c15a0052c78655d7014645cd20a377c.tar.gz |
Merge branch 'jk/prune-mtime'
In v2.2.0, we broke "git prune" that runs in a repository that
borrows from an alternate object store.
* jk/prune-mtime:
sha1_file: fix iterating loose alternate objects
for_each_loose_file_in_objdir: take an optional strbuf path
Diffstat (limited to 't')
-rwxr-xr-x | t/t5304-prune.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t5304-prune.sh b/t/t5304-prune.sh index e32e46dee1..0794d33dad 100755 --- a/t/t5304-prune.sh +++ b/t/t5304-prune.sh @@ -253,4 +253,12 @@ test_expect_success 'prune .git/shallow' ' test_path_is_missing .git/shallow ' +test_expect_success 'prune: handle alternate object database' ' + test_create_repo A && + git -C A commit --allow-empty -m "initial commit" && + git clone --shared A B && + git -C B commit --allow-empty -m "next commit" && + git -C B prune +' + test_done |