Configure bugtraq options after clone
This enables linking to issues from commit messages in various tools (e.g. gitk, TortoiseGit, etc.)
This commit is contained in:
parent
050aeb12c7
commit
ffe5f070e0
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
var gitCommand='config ${gitOptionName} ${gitOptionValue}'
|
||||
|
||||
git
|
||||
|
|
@ -57,6 +57,8 @@ default TARGET_DIR='${Path.Combine(BASE_DIR, "artifacts", "build")}'
|
|||
else
|
||||
{
|
||||
GitClone(repo.Value, "dev");
|
||||
GitConfig("bugtraq.url", "http://github.com/aspnet/" + repo.Key + "/issues/%BUGID%", repo.Key);
|
||||
GitConfig("bugtraq.logregex", @"#(\d+)", repo.Key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -134,5 +136,8 @@ macro name='GitPull' gitUri='string' gitBranch='string' gitFolder='string'
|
|||
macro name='GitClone' gitUri='string' gitBranch='string'
|
||||
git-clone
|
||||
|
||||
macro name='GitConfig' gitOptionName='string' gitOptionValue='string' gitFolder='string'
|
||||
git-config
|
||||
|
||||
macro name='Exec' program='string' commandline='string' workingdir='string'
|
||||
exec
|
||||
|
|
|
|||
Loading…
Reference in New Issue