Custom actions stopped working due to "error: option `porcelain' takes no value"

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 2.6.1
    • Component/s: Git
    • None
    • Environment:

      Standalone app

      macOS Sierra 10.12.6

      java version "1.8.0_45"
      Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
      Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

    • Severity 3 - Minor

      I have some custom commands to update my local branches to match remote branches. The commands are configured as follows:

      Script to run: /usr/local/bin/git
      parameters: checkout -B master origin/master

      These worked until a relatively recent version of SourceTree. Now they fail with this strange error:

      git checkout -B master origin/master 
      error: option `porcelain' takes no value
      usage: git status [<options>] [--] <pathspec>...
      
          -v, --verbose         be verbose
          -s, --short           show status concisely
          -b, --branch          show branch information
          --porcelain           machine-readable output
          --long                show status in long format (default)
          -z, --null            terminate entries with NUL
          -u, --untracked-files[=<mode>]
                                show untracked files, optional modes: all, normal, no. (Default: all)
          --ignored             show ignored files
          --ignore-submodules[=<when>]
                                ignore changes to submodules, optional when: all, dirty, untracked. (Default: all)
          --column[=<style>]    list untracked files in columns
      
      fatal: 'git status --porcelain=2' failed in submodule libs/external
      Completed with errors, see above

      I have a workaround of running these commands on the command-line myself, but it was nice when they worked in SourceTree.

      Even better would be if I could double-click origin/master in the history and update my local master branch to that commit (no matter what branch I am currently on).

        1. 70-767-Exam.pdf
          105 kB
        2. 70-768-Exam.pdf
          106 kB
        3. 70-773-Exam.pdf
          106 kB
        4. 70-774-Exam.pdf
          105 kB
        5. 70-775-Exam.pdf
          106 kB

            Assignee:
            Unassigned
            Reporter:
            tracyk_zillow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: