Code Monkey home page Code Monkey logo

Comments (5)

guyzmo avatar guyzmo commented on September 22, 2024

Hi @AllanLRH,

of course I'm still around to help out ☺

for bitbucket, I indeed forgot to update the part of the readme that talks about the old hack when it did not support tokens. Now bitbucket supports application tokens, and git-repo also supports it.

There are two ways to configure it, either:

  • by running git-repo config and leave git-repo create and fetch the token (though it's scraping the bitbucket interface, so it might break or have broken…), or
  • by logging in bitbucket, go to the application token page and create a new application token for git-repo, copy it and paste it as value for token = in the gitrepo "bitbucket" section.

I'll change the README accordingly for the next release, which is likely to be soon, as we're about to ship gerrit's support!

from git-repo.

AllanLRH avatar AllanLRH commented on September 22, 2024

Thanks for the reply!

I updated my gitconfig with the application token (allowed access to everything), but when I run the same command as before, I still get the error.

[gitrepo "bitbucket"]
    username = AllanLRH
    token = Ref5gyX7Q4kdee6S2zs  ; it's not the real token, but the length is unchanged.
[alias]
    lab = repo lab
    hub = repo hub
    bit = repo bit

from git-repo.

guyzmo avatar guyzmo commented on September 22, 2024

ah my bad, I overlooked the error…

The issue is that per default bitbucket is bb not bit. Of course you can choose to use bit, but to do so, you need to modify your configuration as such:

[gitrepo "bitbucket"]
    username = AllanLRH
    token = ZZZZZZZZZ
    alias = bit
[alias]
    lab = repo lab
    hub = repo hub
    bit = repo bit

the alias = xxx part is to setup whatever name is to be used as git-repo xxx for the service. I'll have to make a note to improve the error message to say something like: To configure a custom name for a service try adding 'alias = xxx' to the [gitrepo "service name"] section, instead of the cryptic Missing service type for custom service.

from git-repo.

AllanLRH avatar AllanLRH commented on September 22, 2024

Nice, this solved my problem. I'm happy with git bb, I just used bit because that's what in the README. Thanks for helping me resolve this ☺︎


If other have this problem:

[gitrepo "bitbucket"]
    username = AllanLRH
    token = Ref5gyX7Q4kdee6S2zs  ; it's not the real token, but the length is unchanged.
[alias]
    lab = repo lab
    hub = repo hub
    bb = repo bb
$ git bb create AllanLRH/testrepo3
Successfully created remote repository `https://bitbucket.org/AllanLRH/testrepo3`, with local remote `bitbucket`

from git-repo.

AllanLRH avatar AllanLRH commented on September 22, 2024

There's still some misleading information in the README, but I've made a pull request (GH-187) proposing fixes to those.

EDIT: Seems like we fell victim to a race condition, and you accepted the PR while I was writing this message. Closing.

from git-repo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.