aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/git-lfs-authenticate/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/git-lfs-authenticate/main.go b/cmd/git-lfs-authenticate/main.go
index 5a5b760..a76fdff 100644
--- a/cmd/git-lfs-authenticate/main.go
+++ b/cmd/git-lfs-authenticate/main.go
@@ -120,13 +120,15 @@ func main() {
120 logger := newLogger(reqID) 120 logger := newLogger(reqID)
121 121
122 if len(os.Args) != 3 { 122 if len(os.Args) != 3 {
123 die(usage) 123 fmt.Println(usage)
124 os.Exit(1)
124 } 125 }
125 126
126 repo := strings.TrimPrefix(strings.TrimSuffix(os.Args[1], ".git"), "/") 127 repo := strings.TrimPrefix(strings.TrimSuffix(os.Args[1], ".git"), "/")
127 operation := os.Args[2] 128 operation := os.Args[2]
128 if operation != "download" && operation != "upload" { 129 if operation != "download" && operation != "upload" {
129 die(usage) 130 fmt.Println(usage)
131 os.Exit(1)
130 } 132 }
131 133
132 repoHRefBaseStr := os.Getenv("REPO_HREF_BASE") 134 repoHRefBaseStr := os.Getenv("REPO_HREF_BASE")