aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fsck.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck.go b/fsck.go
index b3ef48d..3dbc1ef 100644
--- a/fsck.go
+++ b/fsck.go
@@ -21,7 +21,7 @@ func Fsck(env *Env, args []string) int {
var fsck_id *objects.ObjectId = nil
- if len(flags.Args()) > 1 {
+ if len(flags.Args()) > 0 {
id, err := objects.ParseObjectId(flags.Args()[0])
if err != nil {
env.Log.Error().Printf("Could not parse object id: %s", err)