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
f42d546c
Commit
f42d546c
authored
Sep 04, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide better errors for push on non-bare local remotes
parent
e9853592
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/transports/local.c
+2
-1
No files found.
src/transports/local.c
View file @
f42d546c
...
@@ -361,7 +361,8 @@ static int local_push(
...
@@ -361,7 +361,8 @@ static int local_push(
non-bare repo push support would require checking configs to see if
non-bare repo push support would require checking configs to see if
we should override the default 'don't let this happen' behavior */
we should override the default 'don't let this happen' behavior */
if
(
!
remote_repo
->
is_bare
)
{
if
(
!
remote_repo
->
is_bare
)
{
error
=
-
1
;
error
=
GIT_EBAREREPO
;
giterr_set
(
GITERR_INVALID
,
"Local push doesn't (yet) support pushing to non-bare repos."
);
goto
on_error
;
goto
on_error
;
}
}
...
...
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