Commit 526182d28c42bba3ae6b16940438d800f99285d5

Jacques Germishuys 2015-01-20T23:24:32

Remove logically dead code (we're already asserting)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/repository.c b/src/repository.c
index 0cf8eb6..f49a251 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1836,7 +1836,7 @@ int git_repository_hashfile(
 	 */
 
 	error = git_path_join_unrooted(
-		&full_path, path, repo ? git_repository_workdir(repo) : NULL, NULL);
+		&full_path, path, git_repository_workdir(repo), NULL);
 	if (error < 0)
 		return error;