Refactor
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
97445ca2cd
commit
ba5f26056f
6 changed files with 17 additions and 18 deletions
|
@ -2,8 +2,8 @@ package lib
|
|||
|
||||
import "os/exec"
|
||||
|
||||
func execGitCommand(dir string, parts ...string) (string, error) {
|
||||
args := append([]string{"-C", dir}, parts...)
|
||||
func execGitCommand(parts ...string) (string, error) {
|
||||
args := append([]string{"-C", GetZetDir()}, parts...)
|
||||
command := exec.Command("git", args...)
|
||||
|
||||
output, err := command.CombinedOutput()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue