Skip to content

Instantly share code, notes, and snippets.

@osbornm
Created March 2, 2012 20:11
Show Gist options
  • Save osbornm/1960960 to your computer and use it in GitHub Desktop.
Save osbornm/1960960 to your computer and use it in GitHub Desktop.
NuGet Gallery Footer
if ($commitSha -eq $null) {
$commitSha = (& "$gitPath" rev-parse HEAD)
}
if ($commitBranch -eq $null) {
$commitBranch = (& "$gitPath" name-rev --name-only HEAD)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment