Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Generated strategy tries to push wrong revision #47

Closed
jbt opened this issue Oct 14, 2012 · 1 comment
Closed

Generated strategy tries to push wrong revision #47

jbt opened this issue Oct 14, 2012 · 1 comment

Comments

@jbt
Copy link
Collaborator

jbt commented Oct 14, 2012

Think this was introduced in 9579a8c - when delivering using the generated strategy, deliver will attempt to reset the remotes to the revision of the repo before the content was generated, which (as it's on a different branch) doesn't get pushed to the remotes, so fails with a fatal: Could not parse object: '123456...' error.

@hamann
Copy link

hamann commented Jan 16, 2013

Got the same problem, but found a workaround by creating a custom strategy and fixing the $REVISION after generate

fix_revision() {
  REVISION="$(git rev-parse $REFSPEC)"
}

run() {
  gitstatus
  authorize_hosts
  init_app_remotely
  generate
  commit_generated
  fix_revision
  git_push
  git_reset_remote
  authorize_remote_hosts
  git_submodules
  permissions
  generated_cleanup
}

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

2 participants