summaryrefslogtreecommitdiffstats
path: root/pkg/commands/files.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-10-01 08:18:16 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-10-02 08:09:42 +1000
commitda3e00823f733743c2bd8076d13955dbed9fcbae (patch)
tree0b9a5dfa358fe8e1d0b0d53ebb897282548a4581 /pkg/commands/files.go
parentf3be2b3e68a49742ee88053a1d029926bc0d1819 (diff)
allow submodule init and show submodule diff with a prefix
Diffstat (limited to 'pkg/commands/files.go')
-rw-r--r--pkg/commands/files.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/files.go b/pkg/commands/files.go
index f2e67993f..d4560076f 100644
--- a/pkg/commands/files.go
+++ b/pkg/commands/files.go
@@ -35,7 +35,7 @@ func (c *GitCommand) UnstageAll() error {
// UnStageFile unstages a file
func (c *GitCommand) UnStageFile(fileName string, tracked bool) error {
- command := "git rm --cached %s"
+ command := "git rm --cached --force %s"
if tracked {
command = "git reset HEAD %s"
}