Documentation ¶
Overview ¶
Initialise the local repository for SalsaFlow.
salsaflow repo init
Description ¶
This command initialises the local repository for SalsaFlow. In case you need to generate initial configuration, repo bootstrap is your friend.
Anyway, this command makes sure the repository is initialised for SalsaFlow, e.g. that the core branches are created and that the local git hooks are set up. repo init also checks that all required dependencies are installed so that other SalsaFlow commands work flawlessly.
Steps ¶
This command goes through the following steps:
- In case the repository is already initialised, exit. SalsaFlow stores a flag in local git config to quickly check this.
- Make sure that the git hooks are installed (install them if not). This is done by running the hook executables with special flags. Only the SF git hooks know these flags.
- Check the git version being used, SF requires 1.9.0+.
- Perform other registered checks, e.g. the Review Board module checks that RBTools 0.6.x are installed.
- Mark the repository as initialised.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &gocli.Command{
UsageLine: "init",
Short: "initialize the repository",
Long: `
Initialize the repository so that it works with SalsaFlow.
`,
Action: run,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.