Giter Club home page Giter Club logo

git-get's Issues

git-list crashes when running on repo without commits

Steps to reproduce:

❯ mkdir new-repo
❯ cd new-repo
❯ git init
❯ git list -r .
.
└──  error

Oops, errors happened when loading repository status:
git rev-parse --symbolic-full-name --abbrev-ref HEAD failed on .: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

git ls-remote --get-url failed on .: fatal: No remote configured to list refs from.

Consider building one binary instead of two

Right now git-get relases two binaries: git-get and git-list. Consider building only a single git-get binary and embed the list functionality into it (eg, git get list or git get --list).

It was suggested by the creator of git-bug based on disuccions about his project on git mailing list (link to the thread).

Releasing only a single binary would reduce the "namespace grabbing" and may make more sense semantically since git list refers to repos managed by git get anyway.

git get leaves behind empty folders if it fails

I ran ./get github.com/grdl/git-get which failed because I forgot the https://, but it left behind a bunch of empty folders.

richard   master  …  github.com  grdl  git-get  ./get github.com/grdl/git-get
Cloning into '/home/richard/repositories/github.com/github.com/grdl/git-get'...
remote: Not Found
fatal: repository 'https://github.com/github.com/grdl/git-get/' not found
Error: "git clone https://github.com/github.com/grdl/git-get /home/richard/repositories/github.com/github.com/grdl/git-get": exit status 128


 richard   master  …  github.com  grdl  git-get  tree ~/repositories
/home/richard/repositories
└── github.com
    └── github.com
        └── grdl

3 directories, 0 files

I think it'd be nice to delete those if the command fails.
Maybe it could `git clone ... target/directory.tmpXXXX and then rename that after the command succeeds and delete it if the command fails.

git list doesn't work for listing repositories within a repository

I have a "work" repository where I clone all of the repositories that I work on at work. They are not submodules, I just clone them and manage them individually (the root repository is for organization and has some extra work-related utilities). When I update GITGET_ROOT to the root of the work repository, and then run git list, I get:

/home/sumner/projects/github.com/sumnerevans/beeper
└──  master  [ 3 uncommitted 1 untracked ]

When I run git get, it clones the repositories to the correct location, but git list does not handle it properly.

Add option to leave out hostname from path in git get

This is a great tool, thank you! I would suggest that sometimes the hostname is redundant in the tree structure, and it might be nice to have an option to ignore it. So instead you'd just have <root>/<user>/<repo> rather than <root>/<host>/<user>/<repo>

Unclear error message: directory doesn't exist or can't be accessed

I ran git list with a non-existent repo directory and got an error, but it doesn't tell me which directory it tried to access.

richard   master  …  github.com  grdl  git-get  rm -rf ~/repositories/

richard   master  …  github.com  grdl  git-get  ./list 
Error: directory doesn't exist or can't be accessed

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.