diff options
Diffstat (limited to 'git-checkout-store')
-rw-r--r-- | git-checkout-store/main.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/git-checkout-store/main.go b/git-checkout-store/main.go index c9943e4..56b44ec 100644 --- a/git-checkout-store/main.go +++ b/git-checkout-store/main.go @@ -1,17 +1,15 @@ package main - import ( "bytes" + "fmt" "os" "os/exec" - "fmt" ) - func main() { args := os.Args[1:] - + if len(args) > 0 { cmd := exec.Command("git", "checkout", args[0]) var out bytes.Buffer |