mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-29 20:17:17 +00:00
rename-reference: use normalized path
Signed-off-by: schu <schu-github@schulog.org>
This commit is contained in:
parent
340fc0d40a
commit
52b188f6e8
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user