summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--file/git-file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file/git-file.c b/file/git-file.c
index 6cd8a07..10da07f 100644
--- a/file/git-file.c
+++ b/file/git-file.c
@@ -361,6 +361,7 @@ static bool related_same_repo(struct vcs_git *vcs_git)
const struct vcs_git *related = vcs_git->related;
vcs_git->repo = related->repo;
+ vcs_git->commit = related->commit;
vcs_git->tree = related->tree;
return access_file_data(vcs_git, vcs_git->name);
@@ -407,6 +408,7 @@ static bool related_only_repo(struct vcs_git *vcs_git)
}
vcs_git->repo = related->repo;
+ vcs_git->commit = related->commit;
vcs_git->tree = related->tree;
if (!access_file_data(vcs_git, tmp)) {