feat: improved output even more
This commit is contained in:
parent
1b1efcd3c1
commit
47d07c5177
3 changed files with 21 additions and 7 deletions
|
|
@ -149,8 +149,12 @@ func pullRepository(repoName string, repoDestination string) {
|
|||
|
||||
switch {
|
||||
case strings.Contains(string(pullOutput), "You have unstaged changes"):
|
||||
pullErrorMsg = append(pullErrorMsg, repoDestination)
|
||||
logger.Print("Found unstaged changes for repository: "+repoName+" at "+repoDestination, nil)
|
||||
pullErrorMsgUnstaged = append(pullErrorMsgUnstaged, repoDestination)
|
||||
logger.Print("Found unstaged changes in repository: "+repoName+" at "+repoDestination, nil)
|
||||
|
||||
case strings.Contains(string(pullOutput), "Your index contains uncommitted changes"):
|
||||
pullErrorMsgUncommitted = append(pullErrorMsgUncommitted, repoDestination)
|
||||
logger.Print("Found uncommitted changes in repository: "+repoName+" at "+repoDestination, nil)
|
||||
|
||||
default:
|
||||
logger.Print("ERROR: pulling "+repoName, nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue