diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-12-16 12:45:56 -0500 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-12-16 12:45:56 -0500 | 
| commit | b21010c3aaf60fcf695f2541c6523a75337b1c9f (patch) | |
| tree | bc91171761129fc87aca07fd72c75b51ffa7b48e | |
| parent | 6c0355d9802b83938de388b444021f34cf9b9506 (diff) | |
| download | stasis-b21010c3aaf60fcf695f2541c6523a75337b1c9f.tar.gz | |
git_clone return NULL on checkout error
| -rw-r--r-- | src/lib/core/utils.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c index aa4173c..96c89bb 100644 --- a/src/lib/core/utils.c +++ b/src/lib/core/utils.c @@ -331,7 +331,7 @@ int git_clone(struct Process *proc, char *url, char *destdir, char *gitref) {      {          memset(command, 0, sizeof(command));          sprintf(command, "%s fetch --all", program); -        result += shell(proc, command); +        result = shell(proc, command);          if (gitref != NULL) {              memset(command, 0, sizeof(command)); | 
