diff options
author | Ryooooooga <ryoga_314@yahoo.co.jp> | 2021-03-02 12:15:25 +0900 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-13 11:02:31 +1100 |
commit | 64daf1310d63bb5c6334ce0cd06287869bac3218 (patch) | |
tree | 31ea7b5957337f294313c591bfab128dd692d6b3 /pkg/commands/loading_files.go | |
parent | e5ba0d9d9c3e29de9a4219a4037e477aa1a77581 (diff) |
Fix staging/unstaging files containing `"` in paths
Diffstat (limited to 'pkg/commands/loading_files.go')
-rw-r--r-- | pkg/commands/loading_files.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/loading_files.go b/pkg/commands/loading_files.go index be6d58ab2..a08a45888 100644 --- a/pkg/commands/loading_files.go +++ b/pkg/commands/loading_files.go @@ -37,7 +37,7 @@ func (c *GitCommand) GetStatusFiles(opts GetStatusFileOptions) []*models.File { change := statusString[0:2] stagedChange := change[0:1] unstagedChange := statusString[1:2] - filename := c.OSCommand.Unquote(statusString[3:]) + filename := statusString[3:] untracked := utils.IncludesString([]string{"??", "A ", "AM"}, change) hasNoStagedChanges := utils.IncludesString([]string{" ", "U", "?"}, stagedChange) hasMergeConflicts := utils.IncludesString([]string{"DD", "AA", "UU", "AU", "UA", "UD", "DU"}, change) |