summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/git_commands/status.go')
-rw-r--r--pkg/commands/git_commands/status.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/commands/git_commands/status.go b/pkg/commands/git_commands/status.go
index 7f03c698e..13ff02cc0 100644
--- a/pkg/commands/git_commands/status.go
+++ b/pkg/commands/git_commands/status.go
@@ -24,14 +24,14 @@ func NewStatusCommands(
// RebaseMode returns "" for non-rebase mode, "normal" for normal rebase
// and "interactive" for interactive rebase
func (self *StatusCommands) RebaseMode() (enums.RebaseMode, error) {
- exists, err := self.os.FileExists(filepath.Join(self.dotGitDir, "rebase-apply"))
+ exists, err := self.os.FileExists(filepath.Join(self.repoPaths.WorktreeGitDirPath(), "rebase-apply"))
if err != nil {
return enums.REBASE_MODE_NONE, err
}
if exists {
return enums.REBASE_MODE_NORMAL, nil
}
- exists, err = self.os.FileExists(filepath.Join(self.dotGitDir, "rebase-merge"))
+ exists, err = self.os.FileExists(filepath.Join(self.repoPaths.WorktreeGitDirPath(), "rebase-merge"))
if exists {
return enums.REBASE_MODE_INTERACTIVE, err
} else {
@@ -69,5 +69,5 @@ func IsBareRepo(osCommand *oscommands.OSCommand) (bool, error) {
// IsInMergeState states whether we are still mid-merge
func (self *StatusCommands) IsInMergeState() (bool, error) {
- return self.os.FileExists(filepath.Join(self.dotGitDir, "MERGE_HEAD"))
+ return self.os.FileExists(filepath.Join(self.repoPaths.WorktreeGitDirPath(), "MERGE_HEAD"))
}