git-extras icon indicating copy to clipboard operation
git-extras copied to clipboard

FR: clone

Open hemanth opened this issue 10 years ago • 7 comments

Something on the lines of lazyclone will be useful?

//cc @spacewander

hemanth avatar Aug 28 '15 13:08 hemanth

You mean we can write a command called git lazyclone with this skill?

spacewander avatar Aug 29 '15 09:08 spacewander

No, another command in git-extars like git-clone

hemanth avatar Aug 29 '15 10:08 hemanth

@hemanth What should we name it? Is git-get short enough for lazy guy?

spacewander avatar Aug 29 '15 10:08 spacewander

heh heh nice, yeah :+1:

hemanth avatar Aug 29 '15 10:08 hemanth

Terribly, I just figured out we can't change user's pwd in a shell script, unless we put the function in .bashrc

spacewander avatar Aug 29 '15 13:08 spacewander

well, we are just cloning the repo here ain't we?

hemanth avatar Aug 29 '15 15:08 hemanth

Yes, cloning the repo may be the only thing we can do... Since change the pwd of parent shell(used in a tty) is impossible in a subshell(running our script), they are difference processes.

spacewander avatar Aug 30 '15 03:08 spacewander