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

Git 2.0 from 'matching' to 'simple'. #21

Open
laugimethods opened this issue Jun 8, 2016 · 0 comments
Open

Git 2.0 from 'matching' to 'simple'. #21

laugimethods opened this issue Jun 8, 2016 · 0 comments

Comments

@laugimethods
Copy link

laugimethods commented Jun 8, 2016

To avoid

[error] warning: push.default is unset; its implicit value has changed in
[error] Git 2.0 from 'matching' to 'simple'. To squelch this message
[error] and maintain the traditional behavior, use:
[error] 
[error]   git config --global push.default matching
[error] 
[error] To squelch this message and adopt the new behavior now, use:
[error] 
[error]   git config --global push.default simple
[error] 
[error] When push.default is set to 'matching', git will push local branches
[error] to the remote branches that already exist with the same name.
[error] 
[error] Since Git 2.0, Git defaults to the more conservative 'simple'
[error] behavior, which only pushes the current branch to the corresponding
[error] remote branch that 'git pull' uses to update the current branch.
[error] 
[error] See 'git help config' and search for 'push.default' for further information.
[error] (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
[error] 'current' instead of 'simple' if you sometimes use older versions of Git)

git config --global push.default matching (or git config --global push.default simple) should be called (by the plugin?).


Script where this action does avoid this message:

box: hseeberger/scala-sbt
build:
  steps:
    - script:
        name: compile
        code: |
          sbt clean compile test
    - install-packages:
        packages: git openssh-client
    - add-to-known_hosts:
        # https://github.com/wercker/step-add-to-known_hosts
        hostname: github.com
        fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
        type: rsa
    - add-ssh-key:
        # http://devcenter.wercker.com/docs/ssh-keys/generating-ssh-keys.html
        # https://github.com/Logimethods/nats-connector-gatling/settings/keys
        # http://devcenter.wercker.com/docs/git/submodules.html
        keyname: GITHUB_SSH_KEY
        host: github.com
    - script:
        name: Configure Git
        code: |-
          # git config --global push.default matching
          git config --global push.default simple
          git config --global user.email "$GITHUB_EMAIL"
          git config --global user.name "$GITHUB_USERNAME"
          # https://help.github.com/articles/error-permission-denied-publickey/#platform-all
          # ssh -vT [email protected]
    - script:
        name: scaladoc
        code: |
          # https://github.com/sbt/sbt-ghpages
          sbt ghpagesPushSite
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