diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-02-24 12:14:26 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-02-24 12:14:26 +0100 |
| commit | 9554cd514c2a0acd6c9df255b457356873ab16b2 (patch) | |
| tree | 8dedbf5ca6084a86b0114bdce8f80fbbce17d0e9 /src/remote.c | |
| parent | 1db9d2c3bba2fe95280dca34bc04d261bd5d31f7 (diff) | |
| download | libgit2-9554cd514c2a0acd6c9df255b457356873ab16b2.tar.gz | |
A remote exists with an URL alone
We used to consider it an error if a remote didn't have at least a
fetch refspec. This was too much checking, as a remote doesn't in fact
need to have anything other than an URL configured to be considered
a remote.
Diffstat (limited to 'src/remote.c')
| -rw-r--r-- | src/remote.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c index 91622a894..3e0dbf051 100644 --- a/src/remote.c +++ b/src/remote.c @@ -150,6 +150,9 @@ int git_remote_load(git_remote **out, git_repository *repo, const char *name) } error = parse_remote_refspec(config, &remote->fetch, git_buf_cstr(&buf)); + if (error == GIT_ENOTFOUND) + error = GIT_SUCCESS; + if (error < GIT_SUCCESS) { error = git__rethrow(error, "Failed to get fetch refspec"); goto cleanup; |
