I'm using Packer to build a vagrant box. That works successfully.

I want to push the subsequent box up to Atlas. 

I *thought* it'd be as easy as putting the following in my Vagrantfile:

 config.push.define "atlas" do |push|
    push.app = "tobyhferguson/ol6u5-minimal-btrfs-uek"
end



But when I tried 'vagrant push' this is what I got:

[toby@dell-server-2 Packer]$ vagrant push
error archiving: error getting git branch: exit status 129
stdout: 
stderr: error: unknown option `short'
usage: git symbolic-ref [options] name [ref]

    -q, --quiet           be quiet
    -m <reason>           reason of the update


So after reading around I thought it was something to do with a token, 
which I figured out how to generate on the Atlas website, and then add to 
the vagrantfile (the docs say that 'vagrant login' should spit out a token 
- if it does I didn't see it!)

So my Vagrantfile now looks like (with the '...' hiding the rest of the 
token):

  config.push.define "atlas" do |push|
    push.app = "tobyhferguson/ol6u5-minimal-btrfs-uek"
    push.token = "E3faTe..."
  end

But no luck - same error:

[toby@dell-server-2 Packer]$ vagrant push
error archiving: error getting git branch: exit status 129
stdout: 
stderr: error: unknown option `short'
usage: git symbolic-ref [options] name [ref]

    -q, --quiet           be quiet
    -m <reason>           reason of the update

I can't figure it out - there must be a way to get this new box up to 
Atlas, but 'vagrant push' doesn't seem to do it :-(

What am I doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to