sbt-ghpages icon indicating copy to clipboard operation
sbt-ghpages copied to clipboard

Git 2.0 from 'matching' to 'simple'.

Open laugimethods opened this issue 8 years ago • 0 comments

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

laugimethods avatar Jun 08 '16 16:06 laugimethods