-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
package.sh swaps to master branch if .git/config contains upstream #101
Comments
thanks for the report, I need to work on a feature to get circleci cross-compiling all pushes (branches and forks) |
@srfraser do you mean that the |
PS: circleci should now be making debs and rpms, see the "artifacts" tab on any successful build |
Yes, when the It would still be useful to test the building of debs and rpms before it reaches circleci |
@srfraser, it appears that I don't know why it does that, but the only solution I could come up with is to unset the remote branch before running that command, and log a warning that it happened. Let me know what you think (see referenced commit) |
There could be an optional argument to package.sh, specifying the branch. If not given, set to master, then after |
I agree but I think it's a bit too much for this use-case, as it stands the script doesn't really have any arg parsing, I would rather keep it simple, especially since you can now get the .deb and .rpm files via circle |
I really need to remember to do this with the initial commit.
If you wish to test whether package.sh works on a different branch, you must make sure that .git/config does not contain a branch definition, such as:
If this definition exists, then package.sh swaps to the master branch and builds that.
Without that entry, the
git pull
fails (see below), but package.sh carries on with the current branch, allowing the test package build to work.The text was updated successfully, but these errors were encountered: