Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-06-29 22:10:47 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-29 22:10:47 +0300
commitc28a5c972d07833f329d319714df8e357caf1108 (patch)
tree2c20bf4e47ad616d59a179ff7518146637a799ad /tests/submodule
parentcf4030b04b37425911688fb6a1b9f542b6ad8eab (diff)
submodule: remove trailing slashes from submodule paths
We allow looking up a submodule by path, but we lost the path normalisation during the recent changes. Bring it back.
Diffstat (limited to 'tests/submodule')
-rw-r--r--tests/submodule/lookup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/submodule/lookup.c b/tests/submodule/lookup.c
index 666f56ef1..cddbdcfc2 100644
--- a/tests/submodule/lookup.c
+++ b/tests/submodule/lookup.c
@@ -31,6 +31,9 @@ void test_submodule_lookup__simple_lookup(void)
/* lookup non-existent item */
refute_submodule_exists(g_repo, "no_such_file", GIT_ENOTFOUND);
+
+ /* lookup a submodule by path with a trailing slash */
+ assert_submodule_exists(g_repo, "sm_added_and_uncommited/");
}
void test_submodule_lookup__accessors(void)