From ffe5f070e0ee18484daa1bc50bf81cc7ea2f5a25 Mon Sep 17 00:00:00 2001 From: Brice Lambson Date: Mon, 10 Feb 2014 12:21:57 -0800 Subject: [PATCH] Configure bugtraq options after clone This enables linking to issues from commit messages in various tools (e.g. gitk, TortoiseGit, etc.) --- build/_git-config.shade | 4 ++++ makefile.shade | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 build/_git-config.shade diff --git a/build/_git-config.shade b/build/_git-config.shade new file mode 100644 index 0000000000..b6d97436cb --- /dev/null +++ b/build/_git-config.shade @@ -0,0 +1,4 @@ + +var gitCommand='config ${gitOptionName} ${gitOptionValue}' + +git diff --git a/makefile.shade b/makefile.shade index 834db5f08c..a1f19cf36d 100644 --- a/makefile.shade +++ b/makefile.shade @@ -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