Commit a2887370ed151037710c478f1ada8de55e6e9da9

Stefan Sperling 2019-08-23T14:47:26

repair build on sparc64

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/got/got.c b/got/got.c
index 7f0160e..d39a982 100644
--- a/got/got.c
+++ b/got/got.c
@@ -3569,11 +3569,9 @@ cmd_tag(int argc, char *argv[])
 			usage_tag();
 	} else if (argc < 1 || argc > 2)
 		usage_tag();
-	else {
-		tag_name = argv[0];
-		if (argc > 1)
-			commit_id_arg = argv[1];
-	}
+	else if (argc > 1)
+		commit_id_arg = argv[1];
+	tag_name = argv[0];
 
 #ifndef PROFILE
 	if (do_list) {