From 29551667f0c1bca602870caba5921d3abcbe992e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 8 Nov 2024 06:43:45 -0600 Subject: use go-cmd/cmd --- viewTempWindow.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewTempWindow.go') diff --git a/viewTempWindow.go b/viewTempWindow.go index 402393c..ffb99e5 100644 --- a/viewTempWindow.go +++ b/viewTempWindow.go @@ -76,14 +76,14 @@ func (r *RepoList) ShowRepo(repo *RepoRow) error { return } // restore anything staged so everything can be reviewed - newRow.Status.RunCmd([]string{"git", "restore", "--staged", "."}) + newRow.Status.Run([]string{"git", "restore", "--staged", "."}) newRow.Status.XtermWait("git diff") newRow.Status.XtermWait("git add --all") newRow.Status.XtermWait("git commit -a") newRow.Status.XtermWait("git push") if newRow.Status.CheckDirty() { // commit was not done, restore diff - newRow.Status.RunCmd([]string{"git", "restore", "--staged", "."}) + newRow.Status.Run([]string{"git", "restore", "--staged", "."}) } else { newRow.NewScan() } -- cgit v1.2.3