I can’t reproduce this issue. I ran:

% go get -u github.com/Debian/dh-make-golang
% dh-make-golang github.com/danverbraganza/varcaser
% cd golang-github-danverbraganza-varcaser
% git remote set-url origin [email protected]:
go-team/packages/golang-github-danverbraganza-varcaser.git
% gbp push --dry-run --verbose
gbp:debug: ['git', 'rev-parse', '--show-cdup']

gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'symbolic-ref', 'HEAD']
gbp:debug: ['git', 'show-ref', 'refs/heads/master']
gbp:debug: ['git', 'config', 'branch.master.remote']
gbp:debug: ['git', 'tag', '-l', 'debian/0.0_git20151108.ce61ec4-1']
gbp:debug: ['git', 'tag', '-l', 'upstream/0.0_git20151108.ce61ec4']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify',
'upstream/0.0_git20151108.ce61ec4^{commit}']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify',
'refs/heads/upstream']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/pristine-tar']
gbp:debug: ['git', 'log', '--pretty=format:%H', '--no-merges',
'--grep=pristine-tar .*
golang-github-danverbraganza-varcaser_0.0~git20151108.ce61ec4.orig.tar.*',
'pristine-tar', '--']
gbp:debug: Found pristine-tar commit at
'c7fd7478967c22a31118cb40a66a4c45da6474af'
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify',
'c7fd7478967c22a31118cb40a66a4c45da6474af^{commit}']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify',
'refs/heads/pristine-tar']
gbp:info: Dry-run: Pushing upstream/0.0_git20151108.ce61ec4 to origin
gbp:debug: ['git', 'push', 'origin', 'tag',
'upstream/0.0_git20151108.ce61ec4', '--dry-run']
gbp:info: Dry-run: Pushing refs/heads/upstream to origin:refs/heads/upstream
gbp:debug: ['git', 'push', 'origin', '--dry-run',
'refs/heads/upstream:refs/heads/upstream']
gbp:info: Dry-run: Pushing refs/heads/pristine-tar to
origin:refs/heads/pristine-tar
gbp:debug: ['git', 'push', 'origin', '--dry-run',
'refs/heads/pristine-tar:refs/heads/pristine-tar']

Can you reproduce this with the steps I listed?

If yes, it might be a good idea to file a bug report against
git-buildpackage.

On Sun, Nov 25, 2018 at 10:27 PM Tong Sun <[email protected]> wrote:

> I'm trying to make my initial gbp push to salsa-project but it failed
>
> Here is what I'm trying to follow:
>
> 2018/11/25 09:07:42 To create the packaging git repository on salsa, use:
> 2018/11/25 09:07:42     dh-make-golang create-salsa-project
> golang-github-danverbraganza-varcaser
> 2018/11/25 09:07:42
> 2018/11/25 09:07:42 Once you are happy with your packaging, push it to
> salsa using:
> 2018/11/25 09:07:42     git remote set-url origin
> [email protected]:
> go-team/packages/golang-github-danverbraganza-varcaser.git
> 2018/11/25 09:07:42     gbp push
>
> Here is my work log:
>
> $ dh-make-golang create-salsa-project golang-github-danverbraganza-varcaser
>
> $ git remote set-url origin
> [email protected]:
> go-team/packages/golang-github-danverbraganza-varcaser.git
>
> $ git remote -v
> origin [email protected]:
> go-team/packages/golang-github-danverbraganza-varcaser.git
> (fetch)
> origin [email protected]:
> go-team/packages/golang-github-danverbraganza-varcaser.git
> (push)
>
> $ git branch -v
> * master       9078e4c - [+] Initial packaging
>   pristine-tar fbba72a pristine-tar data for
> golang-github-danverbraganza-varcaser_0.0~git20151108.ce61ec4.orig.tar.xz
>   upstream     88a5d5c New upstream version 0.0~git20151108.ce61ec4
>
> $ ls ~/.gbp.conf || echo No such file
> No such file
>
> $ gbp push --verbose
> gbp:debug: ['git', 'rev-parse', '--show-cdup']
> gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
> gbp:debug: ['git', 'rev-parse', '--git-dir']
> gbp:debug: ['git', 'symbolic-ref', 'HEAD']
> gbp:debug: ['git', 'show-ref', 'refs/heads/master']
> gbp:debug: ['git', 'config', 'branch.master.remote']
> gbp:debug: ['git', 'tag', '-l', 'debian/0.0_git20151108.ce61ec4-1']
> gbp:debug: ['git', 'rev-parse', '--quiet', '--verify',
> 'debian/0.0_git20151108.ce61ec4-1^{commit}']
> gbp:error: revision 'debian/0.0_git20151108.ce61ec4-1^{commit}' not found
>
> What's wrong?
>
> Shall I follow `gbp push` as advised, or should I do the following
>
> git push git+ssh://git.debian.org/git/pkg-go/packages/....git --tags
> master pristine-tar upstream
>
> as per
> https://people.debian.org/~stapelberg/2015/07/27/dh-make-golang.html?
>
> Thx.
>
>

-- 
Best regards,
Michael

Reply via email to