-
-
Notifications
You must be signed in to change notification settings - Fork 6
git bump redo fails on a project with no tags #8
Copy link
Copy link
Closed
Description
Hi,
Thank you for git-bump! I was searching for versioning best practices and came across your project. So I decided to give it a shot and try it on one of my projects.
Here is what I did:
eldar@eldar-desktop:~/workspace/mybuild-git ─ (git: master) ───────────────────
$ git bump
Appears to be initial release. Version number required.
eldar@eldar-desktop:~/workspace/mybuild-git ─ (git: master) ───────────────────
$ git bump 0.1
Looks like this is your first release. Please add the version number to the
work tree (e.g., in your Makefile), stage your changes, and run git bump again.
If this isn't your first release, tag your most recent prior release so that
git bump can find it:
git tag -s v1.2.3 8675309
OK, that's pretty clear so far.
Edit and stage...
eldar@eldar-desktop:~/workspace/mybuild-git ─ (git: master) ───────────────────
$ git bump 0.1
[master 9e98236] mybuild-git 0.1
1 file changed, 1 insertion(+), 1 deletion(-)
gpg: skipped "Eldar Abusalimov <eldar.abusalimov@gmail.com>": secret key not available
gpg: signing failed: secret key not available
error: gpg failed to sign the data
error: unable to sign the tag
Error running Git.Oops. I didn't use GPG before, and I end up having a release commit but no tag created. OK, there's a git bump redo command, may be that's what I want?
eldar@eldar-desktop:~/workspace/mybuild-git ─ (git: master) ───────────────────
$ git bump redo
/var/lib/gems/1.9.1/gems/git-bump-1.0.0/lib/git_bump.rb:226:in `redo': undefined method `sha1' for nil:NilClass (NoMethodError)
from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /var/lib/gems/1.9.1/gems/git-bump-1.0.0/lib/git_bump.rb:19:in `start'
from /var/lib/gems/1.9.1/gems/git-bump-1.0.0/bin/git-bump:7:in `<top (required)>'
from /usr/local/bin/git-bump:23:in `load'
from /usr/local/bin/git-bump:23:in `<main>'I've tried both 1.0.0 ruby gem and a code from master (bf793c1), reproduced on both.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels