Skip to content

Commit 47d1a3f

Browse files
committed
use full commit sha
1 parent 7144d88 commit 47d1a3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/add.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func runAdd(cfg *config.Config, opts *addOptions, args []string) error {
108108
cfg.Errorf("failed to commit: %s", err)
109109
return nil
110110
}
111-
cfg.Successf("Created commit %s on %s", cfg.ColorBold(sha[:7]), currentBranch)
111+
cfg.Successf("Created commit %s on %s", cfg.ColorBold(sha), currentBranch)
112112
cfg.Warningf("Branch %s has no prior commits — adding your commit here instead of creating a new branch", currentBranch)
113113
cfg.Printf("When you're ready for the next layer, run %s again", cfg.ColorCyan("gh stack add"))
114114
return nil
@@ -213,7 +213,7 @@ func runAdd(cfg *config.Config, opts *addOptions, args []string) error {
213213
cfg.Errorf("failed to commit: %s", err)
214214
return nil
215215
}
216-
commitSHA = sha[:7]
216+
commitSHA = sha
217217
}
218218

219219
if err := stack.Save(gitDir, sf); err != nil {

0 commit comments

Comments
 (0)