Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Git default HEAD not pointing to master causes inability to do a snapshot or release #34

Open
11xor6 opened this issue May 22, 2013 · 0 comments

Comments

@11xor6
Copy link
Contributor

11xor6 commented May 22, 2013

If you have a repository that you clone who's HEAD points to a different branch than master (on initial clone) you can not do a release or snapshot until the master branch is checked out.

Theoretical reproduction:
$ git clone {git repo} foo
$ cd foo
$ git checkout config-branch
$ asconfig snapshot
Exception in thread "main" java.lang.NullPointerException
at io.airlift.airship.configbundler.Model.readMetadata(Model.java:60)
at io.airlift.airship.configbundler.SnapshotCommand.call(SnapshotCommand.java:35)
at io.airlift.airship.configbundler.SnapshotCommand.call(SnapshotCommand.java:21)
at io.airlift.airship.configbundler.ConfigBundler.main(ConfigBundler.java:31)

This problem goes away after you checkout the master branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant