Commit 52b188f6e870a76be514269ec27b79d1132e2d3d

schu 2011-06-07T14:18:20

rename-reference: use normalized path Signed-off-by: schu <schu-github@schulog.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/refs.c b/src/refs.c
index 1c2d1a8..aaae97a 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -1117,6 +1117,8 @@ static int reference_rename(git_reference *ref, const char *new_name, int force)
 	if (error < GIT_SUCCESS)
 		return git__rethrow(error, "Failed to rename reference");
 
+	new_name = normalized_name;
+
 	/* Ensure we're not going to overwrite an existing reference
 	   unless the user has allowed us */
 	error = git_reference_lookup(&looked_up_ref, ref->owner, new_name);