and `xsa.git`, it will clone a new copy if one doesn't exist already.
Existing repositories will be left alone.
-- It will also disable the default push on all of those repositories,
-even if they exist already. (Command `git config
-config.origin.pushurl http://localhost/fail`.)
+- It will also disable the default push and enable `rerere` on all of
+those repositories even if they exist already. (Commands `git config
+config.origin.pushurl http://localhost/fail` and `git config
+rerere.enabled true`.)
The `--mirrordir` or `--git-proxy` arguments can be used to specify a
cache used for git clones *during build*.
-**TODO**: Enable `git rerere` when creating new repositories
-
## Creating or updating the initial global metadata
`xsatool global update`
_, err = r.gitCmd("config", node, "http://localhost/fail")
return
}
+
+func (r Repo) ConfigEnableRerere() (err error) {
+ _, err = r.gitCmd("config", "rerere.enabled", "true")
+ return
+}