Skip to content

Commit

Permalink
fix: dont trim status line
Browse files Browse the repository at this point in the history
  • Loading branch information
uetchy committed May 11, 2017
1 parent 0b1b500 commit 2094fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ func GitStatus(targetPath string) ([]string, error) {
return nil, errors.New("No status changed")
}

statuses := strings.Split(strings.TrimSpace(string(out)), "\n")
statuses := strings.Split(string(out), "\n")

return statuses, nil
return statuses[:len(statuses)-1], nil
}

// git log --branches --not --remotes
Expand Down

0 comments on commit 2094fa6

Please sign in to comment.