Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3308

Should calc_release_version.py check which remote refers to mongodb/mongo-c-driver?

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build

      I have the following git remotes locally:

      > git remote -v
      origin	git@github.com:kevinAlbs/mongo-c-driver.git (fetch)
      origin	git@github.com:kevinAlbs/mongo-c-driver.git (push)
      upstream	git@github.com:mongodb/mongo-c-driver.git (fetch)
      upstream	git@github.com:mongodb/mongo-c-driver.git (push)
      

      So "origin" is my fork, and "upstream" is mongodb/mongo-c-driver. When I run calc_release_version.py on the master branch, the script inspects the output of "git show-ref" and looks for refs from origin. But my fork does not have the latest tags, so I get the wrong result.

      Perhaps calc_release_version.py should inspect the remotes and match on whichever refers to mongodb/mongo-c-driver.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: