GitReleaseNotes icon indicating copy to clipboard operation
GitReleaseNotes copied to clipboard

Fail when there is more than one remote

Open giggio opened this issue 10 years ago • 3 comments
trafficstars

I am running:

GitReleaseNotes.exe .  /OutputFile ReleaseNotes.md /AllTags /Verbose

I have 3 remotes:

C:\proj\code-cracker> git remote -v
code-cracker    https://github.com/code-cracker/code-cracker.git (fetch)
code-cracker    https://github.com/code-cracker/code-cracker.git (push)
origin  https://github.com/giggio/code-cracker.git (fetch)
origin  https://github.com/giggio/code-cracker.git (push)
vso     https://giggio.visualstudio.com/DefaultCollection/_git/CodeCracker (fetch)
vso     https://giggio.visualstudio.com/DefaultCollection/_git/CodeCracker (push)

The resulting file contains only one pull request, like this:

 - [#1](https://github.com/giggio/code-cracker/pull/1) - Analyze and fix for use of StringBuilder. contributed by Stephany Henrique Batista ([StephanyB
atista](https://github.com/StephanyBatista))

Commits: fb6328725c...5638cd16b6

If I clone the project from the correct remote (the one named code-cracker/code-cracker above) the release notes are generated as expected.

giggio avatar Oct 02 '15 23:10 giggio

It looks for upstream, then origin as a convention.

Sent from my Windows Phone


From: Giovanni Bassimailto:[email protected] Sent: ‎3/‎10/‎2015 7:17 AM To: GitTools/GitReleaseNotesmailto:[email protected] Subject: [GitReleaseNotes] Fail when there is more than one remote (#92)

I am running:

GitReleaseNotes.exe . /OutputFile ReleaseNotes.md /AllTags /Verbose

I have 3 remotes:

C:\proj\code-cracker> git remote -v code-cracker https://github.com/code-cracker/code-cracker.git (fetch) code-cracker https://github.com/code-cracker/code-cracker.git (push) origin https://github.com/giggio/code-cracker.git (fetch) origin https://github.com/giggio/code-cracker.git (push) vso https://giggio.visualstudio.com/DefaultCollection/_git/CodeCracker (fetch) vso https://giggio.visualstudio.com/DefaultCollection/_git/CodeCracker (push)

The resulting file contains only one pull request, like this:

  • #1 - Analyze and fix for use of StringBuilder. contributed by Stephany Henrique Batista (StephanyB atista)

Commits: fb6328725c...5638cd16b6

If I clone the project from the correct remote (the one named code-cracker/code-cracker above) the release notes are generated as expected.

— Reply to this email directly or view it on GitHubhttps://github.com/GitTools/GitReleaseNotes/issues/92.

JakeGinnivan avatar Oct 02 '15 23:10 JakeGinnivan

It make sense. It would be nice if it was a parameter.

giggio avatar Oct 02 '15 23:10 giggio

Yep, agreed!

Sent from my Windows Phone


From: Giovanni Bassimailto:[email protected] Sent: ‎3/‎10/‎2015 7:57 AM To: GitTools/GitReleaseNotesmailto:[email protected] Cc: Jake Ginnivanmailto:[email protected] Subject: Re: [GitReleaseNotes] Fail when there is more than one remote (#92)

It make sense. It would be nice if it was a parameter.

— Reply to this email directly or view it on GitHubhttps://github.com/GitTools/GitReleaseNotes/issues/92#issuecomment-145185401.

JakeGinnivan avatar Oct 03 '15 00:10 JakeGinnivan