Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
52b188f6
Commit
52b188f6
authored
Jun 07, 2011
by
schu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename-reference: use normalized path
Signed-off-by: schu <schu-github@schulog.org>
parent
340fc0d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/refs.c
+2
-0
No files found.
src/refs.c
View file @
52b188f6
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment