Forum Archive

gitrepo - small utility to easily download repos and releases from GitHub

JadedTuna

My first program using ui module :)

It allows you to easily download repos and releases from GitHub, and also supports automatic unzipping.

Main branch: https://github.com/Vik2015/gitrepo

Dev branch: https://github.com/Vik2015/gitrepo/tree/dev

Sebastian

Works great! Thanks for sharing :)

ccc

One suggestion for enhancement: look at the clipboard and if it contains a URL of the form https://github.com/Vik2015/gitrepo then prepopulate the two text fields with the values from the URL.

JadedTuna

@ccc, updated the repo. Thanks for the suggestion :)

JadedTuna

Update

Small update, which adds ability to select, which release do you want to download (previously the program was downloading the latest version).

JadedTuna

Another update

Added new button, "Browse repos". It allows you to browse user's repositories (not their files) and choose one to download.

beer2011

Thanks!
"Browse repos", very good.(^^/

JadedTuna

@beer2011, glad you like it :)

If you guys have any other ideas about stuff I can add - please write them here

beer2011

I noticed, while using...
By the case, The file name which carried out the 'Tap'(in window of "Browse repos") seems not to be correctly reflected.
Would you confirm?
Thanks.

ccc

Yes, @beer2011, see issue #1. I submitted a proposed fix in a pull request.

beer2011

Again, it downloaded.
It can choose now well.
@ccc, @ShadowSlayer, Thanks!

JadedTuna

@beer2011, glad it works now.
@ccc, thanks a lot for the fixes :)

JadedTuna

Okay, I made a new release and fixed some more stuff.

In the next version I am hoping to fix issue #3 and add Choose location button, which will allow you to choose download location :). I think it is going to be pretty useful.

JadedTuna

UPDATE

New release is here!
Unfortunately, I haven't added Choose location button in this release, but I've added the possibility to download and browse gists! Yay :)

techteej

@ShadowSlayer thanks for this, now I only need 1 tool instead of 2! :)

JadedTuna

@techteej, glad it helps :)

SpotlightKid

If you install the script via the gitrepo.uipack.py download, the unpacked gitrepo.pywill have a syntax error on line 21:

parselink = re.compile("<[\S]*?page=(\d+)>; rel="last"").search

i.e. the escaping of the double quotes is lost.

I suggest just using this syntax instead:

parselink = re.compile(r'<[\S]*?page=(\d+)>; rel="last"').search

Please note that I also made the string literal a raw string by prefixing it with r. This is generally a good practice for regular expression strings, since the backslash in combination with certain characters will be interpreted as an escape sequence otherwise and the regex may not work as intended.

JadedTuna

@SpotlightKid, thanks for telling me that! Problem fixed :)

jmv38

hello.
I just downloaded and used your gist to download 'pixel draw' project.
It worked perfectly!
Very nice to have the folder automatically created.
Your project is a life saver!
Thanks.

JadedTuna

Haven't updated this project for a loong time, but hopefully gonna add some cool stuff now! :]

In this update I added branches support:

When entering repo's name, you can specify the branch by putting '/{branch-name-here}' after repo's name, ex:

gitrepo-branches

Going to add push support soon.

P. S. Fixed the lag issue; updates will now be pushed into the dev branch