Commit Diff


commit - f528b57d8841d4669cc7879f9a46e7787d1f1dfc
commit + 6e47225242a2b742817ecafa41e4ff88046b7f88
blob - 6e1854a1044f6cceef1100295b634fdfd3a5a625
blob + 9f0f7dfad2a3e7de7c9fa8c144bb43dcb96c4654
--- lib/reference.c
+++ lib/reference.c
@@ -379,7 +379,6 @@ open_ref(struct got_reference **ref, const char *path_
 {
 	const struct got_error *err = NULL;
 	char *path = NULL;
-	char *normpath = NULL;
 	char *absname = NULL;
 	int ref_is_absolute = (strncmp(name, "refs/", 5) == 0);
 	int ref_is_well_known = is_well_known_ref(name);
@@ -402,21 +401,11 @@ open_ref(struct got_reference **ref, const char *path_
 		}
 	}
 
-	normpath = got_path_normalize(path);
-	if (normpath == NULL) {
-		if (errno == ENOENT)
-			err = NULL;
-		else
-			err = got_error_from_errno2("got_path_normalize", path);
-		goto done;
-	}
-
-	err = parse_ref_file(ref, absname, normpath, lock);
+	err = parse_ref_file(ref, absname, path, lock);
 done:
 	if (!ref_is_absolute && !ref_is_well_known)
 		free(absname);
 	free(path);
-	free(normpath);
 	return err;
 }