diff options
Diffstat (limited to 'internal/sync/sync.go')
| -rw-r--r-- | internal/sync/sync.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/sync/sync.go b/internal/sync/sync.go index 949cb43..048803e 100644 --- a/internal/sync/sync.go +++ b/internal/sync/sync.go @@ -367,10 +367,11 @@ func (s *Syncer) handleWorkingDirectoryState() (bool, error) { } // If we have uncommitted changes but no conflicts, try to stash them - if err := stashChanges(repoPath); err != nil { + stashed, err := stashChanges(repoPath) + if err != nil { return false, fmt.Errorf("failed to stash changes: %w", err) } - return true, nil + return stashed, nil } // checkoutBranch checks out a branch, creating it if necessary |
