mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-05 12:44:01 +00:00
Merge pull request #2969 from adrienthebo/remote_add_invalid_refspec
refspec: report errors when parsing an invalid refspec
This commit is contained in:
commit
61ccba0d56
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user