diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2014-11-17 20:10:58 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-11-17 20:10:58 -0500 |
| commit | 8b5b814e553093295085144976eef2df5bfbafa3 (patch) | |
| tree | c42822868b300b756cdc135351061eeaba9bbbef /src | |
| parent | 7f1b73b7c893ec84cb04870f30199b41519f1c4e (diff) | |
| parent | d3cd7da51fc47d4dd864b398b6987472780aec43 (diff) | |
| download | libgit2-8b5b814e553093295085144976eef2df5bfbafa3.tar.gz | |
Merge pull request #2671 from swisspol/remote_create_fix
Fixed active_refspecs field not initialized on new git_remote objects
Diffstat (limited to 'src')
| -rw-r--r-- | src/remote.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c index cc9f85cd1..2897b456d 100644 --- a/src/remote.c +++ b/src/remote.c @@ -163,6 +163,10 @@ static int create_internal(git_remote **out, git_repository *repo, const char *n if (fetch != NULL) { if (add_refspec(remote, fetch, true) < 0) goto on_error; + + /* Move the data over to where the matching functions can find them */ + if (dwim_refspecs(&remote->active_refspecs, &remote->refspecs, &remote->refs) < 0) + goto on_error; } if (!name) |
