diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-02-01 18:11:00 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-02-05 15:16:37 +0400 |
commit | b4ef67d5ebc55943073d7baacd91f46c20d9ccf4 (patch) | |
tree | 2dae9eac7d3e32a6967967a824df46a0be0ca687 /tests/revwalk/basic.c | |
parent | f61272e04727716ad09bb57e4ffa9ce4be09dc55 (diff) |
revwalk: add a failing test for pushing "tags"
This shows that pusing a whole namespace can be problematic.
Diffstat (limited to 'tests/revwalk/basic.c')
-rw-r--r-- | tests/revwalk/basic.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/revwalk/basic.c b/tests/revwalk/basic.c index 6d55aed54..4621ab8ff 100644 --- a/tests/revwalk/basic.c +++ b/tests/revwalk/basic.c @@ -252,3 +252,13 @@ void test_revwalk_basic__push_range(void) cl_git_pass(git_revwalk_push_range(_walk, "9fd738e~2..9fd738e")); cl_git_pass(test_walk_only(_walk, commit_sorting_segment, 1)); } + +void test_revwalk_basic__push_mixed(void) +{ + revwalk_basic_setup_walk(NULL); + + git_revwalk_reset(_walk); + git_revwalk_sorting(_walk, 0); + cl_git_pass(git_revwalk_push_glob(_walk, "tags")); + cl_git_pass(test_walk_only(_walk, commit_sorting_segment, 1)); +} |