Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push where upstream branch does not exist #49

Open
Duncanmoo opened this issue Sep 21, 2016 · 0 comments
Open

Push where upstream branch does not exist #49

Duncanmoo opened this issue Sep 21, 2016 · 0 comments

Comments

@Duncanmoo
Copy link

We are using this library to do auto-code commits from a Drupal implementation. When we build a site we pass a non-existent branch to the site which checks out the repositories locally to a branch which potentially does not exist on the remote.

When I get the error below, and try and manually do a git push git tells me I need to git push --set-upstream origin branchname, but looking at line 568 of Git.php I see there is no way to set-upstream in the library, and there is no way to create the branch on the remote.

WD php: Exception: in GitRepo->run_command() (line 280 of /var/.../libraries/git/Git.php). Cannot modify header information - headers already sent by (output started at /usr/share/php/drush/includes/output.inc:38) bootstrap.inc:1232 Exception: in GitRepo->run_command() (line 280 of /var/aegir/platforms/.../libraries/git/Git.php).

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

No branches or pull requests

1 participant