Remove now-obsolete flag from struct
This was changed to the more general `exechook`, but must have been missed.
This commit is contained in:
parent
12a1d1e298
commit
cdd6980782
|
|
@ -264,21 +264,20 @@ func envDuration(key string, def time.Duration) time.Duration {
|
||||||
|
|
||||||
// repoSync represents the remote repo and the local sync of it.
|
// repoSync represents the remote repo and the local sync of it.
|
||||||
type repoSync struct {
|
type repoSync struct {
|
||||||
cmd string // the git command to run
|
cmd string // the git command to run
|
||||||
root string // absolute path to the root directory
|
root string // absolute path to the root directory
|
||||||
repo string // remote repo to sync
|
repo string // remote repo to sync
|
||||||
branch string // remote branch to sync
|
branch string // remote branch to sync
|
||||||
rev string // the rev or SHA to sync
|
rev string // the rev or SHA to sync
|
||||||
depth int // for shallow sync
|
depth int // for shallow sync
|
||||||
submodules submodulesMode // how to handle submodules
|
submodules submodulesMode // how to handle submodules
|
||||||
gc gcMode // garbage collection
|
gc gcMode // garbage collection
|
||||||
chmod int // mode to change repo to, or 0
|
chmod int // mode to change repo to, or 0
|
||||||
link string // the name of the symlink to publish under `root`
|
link string // the name of the symlink to publish under `root`
|
||||||
authURL string // a URL to re-fetch credentials, or ""
|
authURL string // a URL to re-fetch credentials, or ""
|
||||||
sparseFile string // path to a sparse-checkout file
|
sparseFile string // path to a sparse-checkout file
|
||||||
syncHookCmd string // command to run after each sync
|
log *logging.Logger
|
||||||
log *logging.Logger
|
run *cmd.Runner
|
||||||
run *cmd.Runner
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
@ -472,21 +471,20 @@ func main() {
|
||||||
|
|
||||||
// Capture the various git parameters.
|
// Capture the various git parameters.
|
||||||
git := &repoSync{
|
git := &repoSync{
|
||||||
cmd: *flGitCmd,
|
cmd: *flGitCmd,
|
||||||
root: absRoot,
|
root: absRoot,
|
||||||
repo: *flRepo,
|
repo: *flRepo,
|
||||||
branch: *flBranch,
|
branch: *flBranch,
|
||||||
rev: *flRev,
|
rev: *flRev,
|
||||||
depth: *flDepth,
|
depth: *flDepth,
|
||||||
submodules: submodulesMode(*flSubmodules),
|
submodules: submodulesMode(*flSubmodules),
|
||||||
gc: gcMode(*flGitGC),
|
gc: gcMode(*flGitGC),
|
||||||
chmod: *flChmod,
|
chmod: *flChmod,
|
||||||
link: absLink,
|
link: absLink,
|
||||||
authURL: *flAskPassURL,
|
authURL: *flAskPassURL,
|
||||||
sparseFile: *flSparseCheckoutFile,
|
sparseFile: *flSparseCheckoutFile,
|
||||||
syncHookCmd: *flSyncHookCommand,
|
log: log,
|
||||||
log: log,
|
run: cmdRunner,
|
||||||
run: cmdRunner,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This context is used only for git credentials initialization. There are
|
// This context is used only for git credentials initialization. There are
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue