Giter VIP home page Giter VIP logo

grit's People

Contributors

dependabot[bot] avatar ezzatron avatar jmalloc avatar na4ma4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

mj111 icodein

grit's Issues

Include all "tail depths" of a slug in the index.

Currently the slug is indexed exactly two levels deep. That is the slug foo/bar is indexed as:

  • foo/bar
  • bar

This 'tail matching' should extend to an arbitrary number of levels, such that foo/bar/baz is indexed as:

  • foo/bar/baz
  • bar/baz
  • baz

Intermittent SSH auth issues

Sometimes I get this:

$ grit clone slouchhat/ui
probing 2 source(s) for slouchhat/ui
ghe: trying [email protected]:slouchhat/ui.git
github: trying [email protected]:slouchhat/ui.git
ghe: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
github: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
could not find 'slouchhat/ui' at any of the configured sources

Grit has previously been working fine for me.

Interactively prompt for source when cloning.

Blocked by #5

If multiple sources have a repo with a matching slug, prompt for a specific source to use (like index select).

At the moment Grit discovers whether a repo exists by trying to clone it, so we'll need a lighter weight way to do that (probably concurrently). git remote-ls is probably the way to do it from the command, so maybe aim for the equivalent in go-git.

Add `self-update` command

  • find latest release via github API
  • download archive and unpack, replace current binary
  • signing / verification?
  • rollback support?

Slug aliases.

  • grit alias <slug> [<path>]

Add an alias for the clone at <path>. This info can be added to the git config so that it's not solely in the index, hence it can be rediscovered with an index scan.

Add a rename command that update the origin URL and moves the repository.

For example, assuming the current URL is git@host:a/b/c.git, the command would change the URL as follows:

  • grit rename x -> git@host:a/b/x.git
  • grit rename x/y -> git@host:a/x/y.git
  • grit rename x/y/z -> git@host:x/y/z.git

And then move the repo into the appropriate location and update the index.

New clone lists many uncommitted changes.

I saw this issue on @koden-km's machine when we were playing around with grit clones.

Kev, if you still have it, could you try a grit rm on that grit clone we made in your $GOPATH and see if it still says there are ~2000 uncommitted changes?

Running `grit config` with no config file causes panic

Fresh install of grit 0.2.1 and running grit config with no config file gave me this:

~: grit config
panic: assignment to entry in nil map

goroutine 1 [running]:
github.com/jmalloc/grit/src/grit.(*Config).normalizeClone(0xc420013c80, 0xc4200f1b40, 0x12, 0xc4200f1b53, 0xb)
	/home/travis/gopath/src/github.com/jmalloc/grit/src/grit/config.go:70 +0x1e4
github.com/jmalloc/grit/src/grit.(*Config).normalize(0xc420013c80, 0xc4200f1b40, 0x12, 0x12, 0x0)
	/home/travis/gopath/src/github.com/jmalloc/grit/src/grit/config.go:56 +0x43
github.com/jmalloc/grit/src/grit.LoadConfig(0xc4200f1b40, 0x1e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, ...)
	/home/travis/gopath/src/github.com/jmalloc/grit/src/grit/config.go:50 +0x443
main.loadConfig(0xc4200c28c0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5, 0x151d38f)
	/home/travis/gopath/src/github.com/jmalloc/grit/src/cmd/grit/main.go:120 +0x9b
main.withConfig.func1(0xc4200c28c0, 0x0, 0xc4200c28c0)
	/home/travis/gopath/src/github.com/jmalloc/grit/src/cmd/grit/main.go:125 +0x49
github.com/jmalloc/grit/vendor/github.com/urfave/cli.HandleAction(0x148d600, 0xc420011f80, 0xc4200c28c0, 0xc420068700, 0x0)
	/home/travis/gopath/src/github.com/jmalloc/grit/vendor/github.com/urfave/cli/app.go:483 +0x10f
github.com/jmalloc/grit/vendor/github.com/urfave/cli.Command.Run(0x151e06a, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x152f842, 0x24, 0x0, ...)
	/home/travis/gopath/src/github.com/jmalloc/grit/vendor/github.com/urfave/cli/command.go:193 +0xb72
github.com/jmalloc/grit/vendor/github.com/urfave/cli.(*App).Run(0xc4200fe340, 0xc42000a1a0, 0x2, 0x2, 0x0, 0x0)
	/home/travis/gopath/src/github.com/jmalloc/grit/vendor/github.com/urfave/cli/app.go:250 +0x7d0
main.main()
	/home/travis/gopath/src/github.com/jmalloc/grit/src/cmd/grit/main.go:114 +0x8f1

A grit cloned repo does not have tracking setup by default

When i tried to git pull on a freshly grit clone'ed repo i get the git message about no tracking setup.

$ grit clone --golang jmalloc/grit
~/go/src/github.com/jmalloc/grit
$ cd ~/go/src/github.com/jmalloc/grit
jmalloc/grit master $ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master
jmalloc/grit master $ git remote -v
origin	[email protected]:jmalloc/grit.git (fetch)
origin	[email protected]:jmalloc/grit.git (push)

Add create command.

Accepts the same parameters as 'clone' but inits a new empty repo and sets up the remote.

Perhaps later it could create the repo through GH/BitBucket APIs, but the hub command can do this anyway (for GH obviously).

Feature request: grit browse

NAME:
   grit browse - Open a browser window to the GitHub project associated with <slug>.

USAGE:
   grit browse <slug>

A self-update did not remove the backup file

For reference, i had a manual debug build from master branch newer than 0.3.1 (it has the selfupdate alias removed).

$ grit self-update --force
searching for the latest release
downloading version 0.3.1 (100%, 3.4 MB / 3.4 MB)
reinstalled version 0.3.1

It left behind the grit.0.3.1.backup file.

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.