Commit 61ccba0d by Carlos Martín Nieto

Merge pull request #2969 from adrienthebo/remote_add_invalid_refspec

refspec: report errors when parsing an invalid refspec
parents 522df1cf b523194d
......@@ -133,6 +133,9 @@ int git_refspec__parse(git_refspec *refspec, const char *input, bool is_fetch)
return 0;
invalid:
giterr_set(
GITERR_INVALID,
"'%s' is not a valid refspec.", input);
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment