Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-04-28 16:16:45 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2013-04-28 16:21:10 +0400
commit528a4e24c6671d621847cf8e3121e3c56fe20d3b (patch)
tree254aebe6ad284ebb3d2403ac258850c8382c72c2 /src/refspec.c
parent78bf2944ed0512f38dfcb56f590373a904ca29c0 (diff)
Parse shorthand refspecs as valid
Relax the ONELEVEL ref naming rules so the refspec parsing code can ask for 'master' to be considered valid.
Diffstat (limited to 'src/refspec.c')
-rw-r--r--src/refspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/refspec.c b/src/refspec.c
index fbdea9d93..256540819 100644
--- a/src/refspec.c
+++ b/src/refspec.c
@@ -60,7 +60,7 @@ int git_refspec__parse(git_refspec *refspec, const char *input, bool is_fetch)
refspec->pattern = is_glob;
refspec->src = git__strndup(lhs, llen);
- flags = GIT_REF_FORMAT_ALLOW_ONELEVEL
+ flags = GIT_REF_FORMAT_ALLOW_ONELEVEL | GIT_REF_FORMAT_REFSPEC_SHORTHAND
| (is_glob ? GIT_REF_FORMAT_REFSPEC_PATTERN : 0);
if (is_fetch) {