Skip to content

Add() Branches typeahead displays branch name incorrectly #17

@ericschuh

Description

@ericschuh

When setting up strider with my repo I noticed that when you go to add a branch on the main project config page the auto complete was not correctly displaying branches with '/' in the name. Our project uses 'feature/branch_name' or 'bug/branch_name' as a naming convention for our branches.

Anyway I tracked down the problem in strider-git/lib/index.js line 105, in function processBranches() it was simply splitting the full branch name path ('refs/heads/branch/name') on '/' and changed this line to the following:

return line.split(/\s+/)[1].substring(11); //11 is the length of refs/heads/

which now returns everything after refs/heads/ as the branch name rather then simply anything after the last '/'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions