Skip to content

Commit

Permalink
fix: expand user-supplied location paths (closes #58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Aug 28, 2023
1 parent b6fbd2e commit 71917d8
Show file tree
Hide file tree
Showing 56 changed files with 59 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v6.1.2 (2023-08-27)

- Expand paths for user-supplied `--location` strings. This now allows for spaces in paths and proper expansion of home directories (eg: `~`)

## v6.1.1 (2023-08-26)

- Fixes PyGithub pinned version to ensure `Auth` is available
Expand Down
2 changes: 1 addition & 1 deletion github_archive/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "6.1.1"
__version__ = "6.1.2"
2 changes: 1 addition & 1 deletion github_archive/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__(
self.include = include.lower().split(',') if include else ''
self.exclude = exclude.lower().split(',') if exclude else ''
self.forks = forks
self.location = location
self.location = os.path.expanduser(location)
self.use_https = use_https
self.timeout = timeout
self.threads = threads
Expand Down
2 changes: 1 addition & 1 deletion github_archive/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


DEFAULT_BASE_URL = 'https://api.github.com'
DEFAULT_LOCATION = os.path.expanduser(os.path.join('~', 'github-archive'))
DEFAULT_LOCATION = os.path.join('~', 'github-archive')
DEFAULT_NUM_THREADS = 10
DEFAULT_TIMEOUT = 300

Expand Down
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/.github
Submodule .github added at 754dbc
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/Justintime50
Submodule Justintime50 added at b471b1
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/SwiftSystemSounds
Submodule SwiftSystemSounds added at 14aeb3
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/adventofcode
Submodule adventofcode added at 43b61e
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/alchemist
Submodule alchemist added at 117346
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/algorithms
Submodule algorithms added at c5c72c
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/apache-php-docker
Submodule apache-php-docker added at 2db2ff
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/assets
Submodule assets added at 8e2ca9
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/build-project
Submodule build-project added at 37780c
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/burn-notice
Submodule burn-notice added at 2d5f2c
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/clienv
Submodule clienv added at fefdbd
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/dad
Submodule dad added at b99211
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/dad-node
Submodule dad-node added at a6d8d8
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/dad-python
Submodule dad-python added at aaa596
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/diff-tool
Submodule diff-tool added at 69c868
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/dotfiles
Submodule dotfiles added at 145bfc
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/dots
Submodule dots added at b58fe2
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/easypost-bond
Submodule easypost-bond added at 488947
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/easypost-cli
Submodule easypost-cli added at 1bb74e
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/easypost-tools
Submodule easypost-tools added at 6d4ff7
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/easypost-tools-ui
Submodule easypost-tools-ui added at 8c5932
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/forks-sync
Submodule forks-sync added at fdfd49
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/github-archive
Submodule github-archive added at b6fbd2
Submodule github-dark-vscode-emacs-theme added at 785d21
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/glass
Submodule glass added at 08404d
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/golang-template
Submodule golang-template added at 0c2173
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/harvey
Submodule harvey added at cc93ae
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/harvey-ui
Submodule harvey-ui added at 30e0d0
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/homebrew-formulas
Submodule homebrew-formulas added at 93edab
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/homebrew-releaser
Submodule homebrew-releaser added at 701a22
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/interviews
Submodule interviews added at 82133e
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/labelary
Submodule labelary added at d1a816
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/laravel-template
Submodule laravel-template added at 11109f
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/linguist-breakdown
Submodule linguist-breakdown added at 91faf0
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/mockcmd
Submodule mockcmd added at b2707e
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/myelpa
Submodule myelpa added at d69a23
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/nginx-php-docker
Submodule nginx-php-docker added at add014
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/onepass
Submodule onepass added at be8e20
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/os-scripting
Submodule os-scripting added at b0fb63
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/pineapple
Submodule pineapple added at 3ff469
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/pip-tree
Submodule pip-tree added at 8d1712
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/playground
Submodule playground added at 11611f
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/pretty-tables
Submodule pretty-tables added at 71a066
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/proxlist
Submodule proxlist added at df83e9
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/pullbug
Submodule pullbug added at 60ee49
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/python-template
Submodule python-template added at b688c1
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/secure-browser-kiosk
Submodule secure-browser-kiosk added at 490fb3
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/service-stats
Submodule service-stats added at 237ccd
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/srvinfra
Submodule srvinfra added at 5f4719
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/styles
Submodule styles added at deaef2
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/vcr-accessories-php
Submodule vcr-accessories-php added at 414187
1 change: 1 addition & 0 deletions ~/test again/repos/justintime50/woodchips
Submodule woodchips added at 9ecab7

0 comments on commit 71917d8

Please sign in to comment.