Skip to content

Commit 14f731c

Browse files
committed
[annex] Add push reject to sync error parsing
1 parent 1d7d949 commit 14f731c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git/annex.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,8 @@ func parseSyncErrors(messages string) error {
10761076
} else if strings.Contains(messages, "Host key verification failed") {
10771077
// Bad host key configured
10781078
return fmt.Errorf("server key does not match known host key")
1079+
} else if strings.Contains(messages, "rejected") { // push error: remote is ahead of local
1080+
return fmt.Errorf("changes were made on the server that have not been downloaded; run 'gin download' to update local copies")
10791081
}
10801082
return nil
10811083
}

0 commit comments

Comments
 (0)