Skip to content

Single quotation mark in branch name borks pull-request #695

@chris-morgan

Description

@chris-morgan
$ hub --version
git version 2.1.3
hub version 1.12.1
$ git rev-parse --abbrev-ref HEAD
impl-BorrowFrom-'static-slice-T-for-slice-T
$ hub pull-request -b rust-lang:master
/usr/lib/ruby/2.1.0/shellwords.rb:75:in `block in shellsplit': Unmatched double quote: "rev-list --cherry-pick --right-only --no-merges origin/impl-BorrowFrom-'static-slice-T-for-slice-T..." (ArgumentError)
    from /usr/lib/ruby/2.1.0/shellwords.rb:73:in `scan'
    from /usr/lib/ruby/2.1.0/shellwords.rb:73:in `shellsplit'
    from /usr/bin/hub:903:in `to_exec'
    from /usr/bin/hub:908:in `command_to_string'
    from /usr/bin/hub:867:in `block in initialize'
    from /usr/bin/hub:885:in `yield'
    from /usr/bin/hub:885:in `read'
    from /usr/bin/hub:1324:in `rev_list'
    from /usr/bin/hub:1720:in `pull_request'
    from /usr/bin/hub:1586:in `run'
    from /usr/bin/hub:2508:in `initialize'
    from /usr/bin/hub:2512:in `new'
    from /usr/bin/hub:2512:in `execute'
    from /usr/bin/hub:2563:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions