The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #11040

vcsrepo: type git change from present to latest failed

Added by Paul Belanger almost 3 years ago. Updated about 1 year ago.

Status:Needs More InformationStart date:11/24/2011
Priority:NormalDue date:
Assignee:Paul Belanger% Done:

0%

Category:vcsrepoSpent time:-
Target version:-
Keywords:vcsrepo Branch:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the MODULES project on JIRA using the button below:


Description

I’m having problems getting a git repo to update. Using the following logic results in the error below:

vcsrepo { "/etc/asterisk/sites":
     ensure          => latest,
     provider        => git,
     source          => 'git@github.com:pabelanger/pbx01.polybeacon.lan.git',
     owner           => 'asterisk',
     group           => 'asterisk',
     notify          => Class['asterisk::classes::service'],
}

err: /Stage[main]//Node[pbx01.polybeacon.lan]/Vcsrepo[/etc/asterisk/sites]/ensure: change from present to latest failed: Execution of ‘/usr/bin/git checkout -b 2365f6905b3c892ad70918bba72afcf48a7c9a33 —track origin/2365f6905b3c892ad70918bba72afcf48a7c9a33’ returned 128: fatal: git checkout: updating paths is incompatible with switching branches. Did you intend to checkout ‘origin/2365f6905b3c892ad70918bba72afcf48a7c9a33’ which can not be resolved as commit?

I was also able to find this thread[1] on puppet-users.

[1] http://groups.google.com/group/puppet-users/browse_thread/thread/cb33e0ef64651f64


Related issues

Related to Puppet Labs Modules - Bug #11798: vcsrepo doesn't actually update revisions with git. Merged - Pending Release 01/05/2012

History

#1 Updated by Paul Belanger almost 3 years ago

  • Keywords set to vcsrepo

#2 Updated by Ken Barber almost 3 years ago

  • Category set to vcsrepo

#3 Updated by Ken Barber almost 3 years ago

  • Subject changed from vcsrepo type git: change from present to latest failed to vcsrepo: type git change from present to latest failed
  • Status changed from Unreviewed to Accepted

#4 Updated by Aaron Stone almost 2 years ago

  • Status changed from Accepted to Needs More Information

Please check if vcsrepo 0.1.1 resolves this issue for you.

#5 Updated by Matthew Haughton over 1 year ago

  • Assignee set to Paul Belanger

Assigning to Paul per the ticket status workflow to confirm if vcsrepo 0.1.1 resolves the issue or provide more information.

#6 Updated by Greg Boyington about 1 year ago

Bug is still present in v0.1.2:

% puppet module list |grep vcsrepo
├── puppetlabs-vcsrepo (v0.1.2)

manifest:

vcsrepo { "${home}/.skel":
    ensure      => latest,
    provider    => git,
    source      => "https://github.com/evilchili/skel",
    force       => true,
}

log:

Error: Execution of '/usr/bin/git checkout -b 04f5c8e63348a6c569b6f25020da35465c89ab3a --track origin/04f5c8e63348a6c569b6f25020da35465c89ab3a' returned 128: fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/04f5c8e63348a6c569b6f25020da35465c89ab3a' which can not be resolved as commit?

Also available in: Atom PDF