init: Ensure repo.mirror is noticed once set
If we don't clear the cache, there can be a timestamp race between the pickle file and the raw text file, and we may not pick up the edit when we create a new config object around the same path name. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
ce86abbe8a
commit
7354d88914
1 changed files with 1 additions and 0 deletions
|
@ -117,6 +117,7 @@ to update the working directory files.
|
|||
if opt.mirror:
|
||||
if is_new:
|
||||
m.config.SetString('repo.mirror', 'true')
|
||||
m.config.ClearCache()
|
||||
else:
|
||||
print >>sys.stderr, 'fatal: --mirror not supported on existing client'
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue