Skip to content

Commit 3c1104e

Browse files
fix: Try another exitNoNewFiles value
1 parent 062fb84 commit 3c1104e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

git/git.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
const (
1717
exitOk int = 0
1818
exitError int = 1
19-
exitNoNewFiles int = 10
19+
exitNoNewFiles int = 9
2020
)
2121

2222
func getGitPorcelain(dirPath string) (git.Status, error) {
@@ -265,6 +265,9 @@ func UploadToRepo(
265265
}
266266

267267
ref, resp, respErr := setBranchToCommit(ctx, client, repo, branch, emptyCommit)
268+
if respErr != nil {
269+
return nil, nil, respErr, exitError
270+
}
268271

269272
err = os.Remove(fileName)
270273
if err != nil {

0 commit comments

Comments
 (0)