diff options
author | Dan Willemsen <dwillemsen@google.com> | 2015-09-03 12:52:28 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2015-09-03 12:54:06 -0700 |
commit | 029eaf3bac39d0dce49e0627597b1659d5335dde (patch) | |
tree | e2a5cb35a8ea85984c7e4f92bac9fffd4d1e617c | |
parent | ba72d8301e33344b3b11e286619c99568c37db1a (diff) | |
download | git-repo-029eaf3bac39d0dce49e0627597b1659d5335dde.tar.gz |
_CopyAndLinkFiles even if the sources haven't changed
The source or destination attributes may have changed even if the source
didn't, so we need to make sure that these are up to date.
Change-Id: I266ef3598ddda7e8c23bc9c6a049905ddc586348
-rw-r--r-- | project.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1275,6 +1275,8 @@ class Project(object): | |||
1275 | # Except if the head needs to be detached | 1275 | # Except if the head needs to be detached |
1276 | # | 1276 | # |
1277 | if not syncbuf.detach_head: | 1277 | if not syncbuf.detach_head: |
1278 | # The copy/linkfile config may have changed. | ||
1279 | self._CopyAndLinkFiles() | ||
1278 | return | 1280 | return |
1279 | else: | 1281 | else: |
1280 | lost = self._revlist(not_rev(revid), HEAD) | 1282 | lost = self._revlist(not_rev(revid), HEAD) |
@@ -1292,6 +1294,8 @@ class Project(object): | |||
1292 | if head == revid: | 1294 | if head == revid: |
1293 | # No changes; don't do anything further. | 1295 | # No changes; don't do anything further. |
1294 | # | 1296 | # |
1297 | # The copy/linkfile config may have changed. | ||
1298 | self._CopyAndLinkFiles() | ||
1295 | return | 1299 | return |
1296 | 1300 | ||
1297 | branch = self.GetBranch(branch) | 1301 | branch = self.GetBranch(branch) |