From a39af3d4322135202aabfc78cc65809a28a4ca75 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Thu, 1 Sep 2022 19:24:36 +0200 Subject: [PATCH] project: Add a missing call to _CopyAndLinkFiles If a file that is copied using a tag is modified and not committed or if it is committed to a detached head, then running `repo sync` would update the target file as expected. However, if the modified file is committed to a local branch, then running `repo sync' would not update the target file as expected. Change-Id: Ic98e37d1c2e51fd1bf15abf149c7d06190cfd6d2 Signed-off-by: Peter Kjellerstedt Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/344475 Reviewed-by: Mike Frysinger --- project.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project.py b/project.py index 0da2118b9..1c85b0445 100644 --- a/project.py +++ b/project.py @@ -1462,6 +1462,8 @@ def _dosubmodules(): cnt_mine += 1 if not upstream_gain and cnt_mine == len(local_changes): + # The copy/linkfile config may have changed. + self._CopyAndLinkFiles() return if self.IsDirty(consider_untracked=False):