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:
Brice Lambson 2014-02-10 12:21:57 -08:00
parent 050aeb12c7
commit ffe5f070e0
2 changed files with 9 additions and 0 deletions

4
build/_git-config.shade Normal file
View File

@ -0,0 +1,4 @@
var gitCommand='config ${gitOptionName} ${gitOptionValue}'
git

View File

@ -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