Atlas and vagrant push - can't seem to figure it out!

137 views
Skip to first unread message

Toby Ferguson

unread,
Jan 5, 2015, 7:33:17 PM1/5/15
to vagra...@googlegroups.com
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?

Torben Knerr

unread,
Jan 5, 2015, 8:11:05 PM1/5/15
to vagra...@googlegroups.com
Looks like you would need a newer Git client version on your workstation.

* 1.7.0 does NOT have the `--short` option:
http://git-scm.com/docs/git-symbolic-ref/1.7.0
* 1.8.0 does have it: http://git-scm.com/docs/git-symbolic-ref/1.8.0

HTH,
Torben
> --
> 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 vagrant-up+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Toby Ferguson

unread,
Jan 5, 2015, 8:54:23 PM1/5/15
to vagra...@googlegroups.com
Thanks - I'll try that out and let you know! Appreciate the quick response.

toby

You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/CLAknOuNGDU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
toby

Toby Ferguson

unread,
Jan 6, 2015, 10:26:54 AM1/6/15
to vagra...@googlegroups.com
Torben - upgrading to git 1.8 did the trick. Thanks for the pointer. Toby
--
toby
Reply all
Reply to author
Forward
0 new messages