Skip to content

TestRepository_UpdateEverything includes "origin/" prefix on some Git versions #90

Open
@sqs

Description

--- FAIL: TestRepository_UpdateEverything (0.92s)
    repository_test.go:1734: git: got UpdateResult == {
          "Changes": [
            {
              "Op": 1,
              "Branch": "master"
            },
            {
              "Op": 0,
              "Branch": "second"
            }
          ]
        }, want {
          "Changes": [
            {
              "Op": 1,
              "Branch": "origin/master"
            },
            {
              "Op": 0,
              "Branch": "second"
            }
          ]
        }

@shurcooL and @shazow report that the test passes for them; it fails for me on Linux git 2.7.0.rc0.20.g4b9ab0e and in the included Dockerfile test runner (Ubuntu 12.04 standard git version).

The desired behavior is to have no "origin/" prefix, but we need to strip the name of the remote in general (even if it is not named "origin").

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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