omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Any guidance on how to do a 'git clone' from a private repository with StaSH?

    Pythonista
    3
    5
    3205
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Omniver
      Omniver last edited by Omniver

      I can't seem to find any way to set the username/password on a clone to be able to pull my code. What am I missing?

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by ccc

        I do not use StaSH for git interactions so I can not advise you on your exact question.

        However, if your git server has a web interface where you can start a transfer, then check out read_zipfile_from_github.py which is simple enough that you might be able to bend it to your needs. For more complicated interactions, I use and recommend the Working Copy app. Once code is in WC, I leverage this script to move that content into Pythonista.

        1 Reply Last reply Reply Quote 0
        • JonB
          JonB last edited by JonB

          You should be able to use git clone https://user:pass@servername.com/path/to/repo.git

          The user:pass gets intercepted and turned into an OAuth

          1 Reply Last reply Reply Quote 1
          • Omniver
            Omniver last edited by

            @JonB - been trying that, no-go. Does it work for you?

            1 Reply Last reply Reply Quote 0
            • JonB
              JonB last edited by

              On second though, not sure if clone supports password right now. More recent dulwich does, but we would need to tweak some things to integrate it.

              You could try

              git init somereponame pathToRepo
              git remote origin https://yourprivaterepo.com/repo.git
              git fetch origin -u user:password
              

              I have not tried it, but it seems we at least intended this to work
              .

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors