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.


    Gitview problems

    Pythonista
    3
    7
    3883
    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.
    • disorientedp
      disorientedp last edited by

      @JonB I can't use gitview. Whenever I run gitui.py, I get a "KeyError: 'HEAD'" error.

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

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • JonB
          JonB last edited by

          Are you sure you are in a path that is a repo?
          If so, fire up stash, and

          cd myreponame
          echo ref: refs/heads/master> .git/HEAD
          

          Sometimes a failed clone might also end up creating a .git folder, but does not populate it, in which case you should delete the folder, or try to clone again, and say yes when it asks you to confirm overwriting.

          Also note, in pythonista 2.0, you should place the gitview folder in site-packages, otherwise it won't survive global clearing.

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

            in the above, hopefully it is obvious thatbyou should replace myreponame with the folder where your working copy is located (the same name selected in the upper left of gitui)

            Also, I reccommend making an editor action out of gitview, so that you can run it and it will automatically open the path of the script you are currently editing.

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

              oh... i see.. this might be an issue when ~/Documents has a .git folder due to a failed clone in stash.

              in stash, go to ~/Documents and

              rm -rf .git
              

              I need to fix stash git so if you forget the second clone argument (path to clone to) it won't try to create a .git in Documents.

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

                @JonB Oh. I feel stupid now. I thought you opened the repo after running the script. Never mind, there is no problem.

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

                  You should be able to open the repo after as well, by using the repo dropdown, or just typing the repo name (as a subfolder of Documents)

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