Commit 4e9641174884f5d81b7c12784b49c7c830116fe1

The rugged tests are fragile 2014-09-17T15:24:56

Style

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/attr.c b/src/attr.c
index e4bd5f6..a021726 100644
--- a/src/attr.c
+++ b/src/attr.c
@@ -447,11 +447,10 @@ static int collect_attr_files(
 		giterr_clear(); /* no error even if there is no index */
 	info.files = files;
 
-	if (!strcmp(dir.ptr, ".")) {
+	if (!strcmp(dir.ptr, "."))
 		error = push_one_attr(&info, "");
-	} else {
+	else
 		error = git_path_walk_up(&dir, workdir, push_one_attr, &info);
-	}
 
 	if (error < 0)
 		goto cleanup;