projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rev-list: fix process_tree() conversion.
[git.git]
/
builtin-push.c
diff --git
a/builtin-push.c
b/builtin-push.c
index
06d06ff
..
e530022
100644
(file)
--- a/
builtin-push.c
+++ b/
builtin-push.c
@@
-72,7
+72,7
@@
static int get_remotes_uri(const char *repo, const char *uri[MAX_URI])
{
int n = 0;
FILE *f = fopen(git_path("remotes/%s", repo), "r");
{
int n = 0;
FILE *f = fopen(git_path("remotes/%s", repo), "r");
- int has_explicit_refspec = refspec_nr;
+ int has_explicit_refspec = refspec_nr
|| all || tags
;
if (!f)
return -1;
if (!f)
return -1;
@@
-144,7
+144,7
@@
static int get_config_remotes_uri(const char *repo, const char *uri[MAX_URI])
config_repo = repo;
config_current_uri = 0;
config_uri = uri;
config_repo = repo;
config_current_uri = 0;
config_uri = uri;
- config_get_refspecs = !
refspec_nr
;
+ config_get_refspecs = !
(refspec_nr || all || tags)
;
git_config(get_remote_config);
return config_current_uri;
git_config(get_remote_config);
return config_current_uri;