Browse Source

Fix error thrown when there's nothing to push

Brendan Abolivier 7 years ago
parent
commit
bd148feba3
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      src/git/git.go

+ 7
- 1
src/git/git.go View File

110
 		return err
110
 		return err
111
 	}
111
 	}
112
 
112
 
113
-	return r.Push(&git.PushOptions{
113
+	err = r.Push(&git.PushOptions{
114
 		Auth: auth,
114
 		Auth: auth,
115
 	})
115
 	})
116
+
117
+	if err == git.NoErrAlreadyUpToDate {
118
+		return nil
119
+	}
120
+
121
+	return err
116
 }
122
 }