Commit Diff


commit - c191ed664f6c437ebc3e0c859c53e48b445401f1
commit + aedda007f35a0820009e1463c9c804c6dea9acb1
blob - 240d979aea718cc2ca5e8b74db07aff36553667a
blob + 02c770eb0d7651e3b3673358243c77064ae94f5d
--- lib/reference.c
+++ lib/reference.c
@@ -403,7 +403,10 @@ open_ref(struct got_reference **ref, const char *path_
 
 	normpath = got_path_normalize(path);
 	if (normpath == NULL) {
-		err = got_error_from_errno2("got_path_normalize", path);
+		if (errno == ENOENT)
+			err = NULL;
+		else
+			err = got_error_from_errno2("got_path_normalize", path);
 		goto done;
 	}