diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-03-31 20:25:19 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-04-01 01:01:10 +0400 |
commit | 2ca19130998281001615901598cc600e5d6dbbcd (patch) | |
tree | 0ee4ce0eee5dacbf4afee2972ef454283e1d486e /nuget.package | |
parent | 412010c9316301bb3f7b588bf61018141bd41d9f (diff) |
Add Repository.Version static property
This property returns a string containing the LibGit2Sharp version number, the commit hash it's been built against (if available), the libgit2 commit hash and the processor architecture.
Diffstat (limited to 'nuget.package')
-rw-r--r-- | nuget.package/build.nuget.package.cmd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuget.package/build.nuget.package.cmd b/nuget.package/build.nuget.package.cmd index 0a498a31..e36c3f15 100644 --- a/nuget.package/build.nuget.package.cmd +++ b/nuget.package/build.nuget.package.cmd @@ -1,6 +1,7 @@ SETLOCAL SET BASEDIR=%~dp0 SET SRCDIR=%BASEDIR%..\LibGit2Sharp\ +SET CommitSha=%~1 REM the nuspec file needs to be next to the csproj, so copy it there during the pack operation COPY "%BASEDIR%LibGit2Sharp.nuspec" "%SRCDIR%" @@ -9,7 +10,7 @@ PUSHD "%BASEDIR%" DEL *.nupkg -CMD /c "..\build.libgit2sharp.cmd" +CMD /c "..\build.libgit2sharp.cmd %CommitSha%" IF %ERRORLEVEL% NEQ 0 GOTO EXIT |