skilleter-thingy 0.1.4__py3-none-any.whl → 0.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of skilleter-thingy might be problematic. Click here for more details.
- skilleter_thingy/multigit.py +10 -6
- {skilleter_thingy-0.1.4.dist-info → skilleter_thingy-0.1.6.dist-info}/METADATA +1 -1
- {skilleter_thingy-0.1.4.dist-info → skilleter_thingy-0.1.6.dist-info}/RECORD +7 -7
- {skilleter_thingy-0.1.4.dist-info → skilleter_thingy-0.1.6.dist-info}/LICENSE +0 -0
- {skilleter_thingy-0.1.4.dist-info → skilleter_thingy-0.1.6.dist-info}/WHEEL +0 -0
- {skilleter_thingy-0.1.4.dist-info → skilleter_thingy-0.1.6.dist-info}/entry_points.txt +0 -0
- {skilleter_thingy-0.1.4.dist-info → skilleter_thingy-0.1.6.dist-info}/top_level.txt +0 -0
skilleter_thingy/multigit.py
CHANGED
|
@@ -219,6 +219,8 @@ def select_git_repos(args, config):
|
|
|
219
219
|
# If repos are specified, then only match according to exact name match,
|
|
220
220
|
# exact path match or wildcard match
|
|
221
221
|
|
|
222
|
+
repo_abs_path = absolute_repo_path(args, repo_path)
|
|
223
|
+
|
|
222
224
|
if args.repos:
|
|
223
225
|
for entry in args.repos:
|
|
224
226
|
if config[repo_path]['repo name'] == entry:
|
|
@@ -242,13 +244,13 @@ def select_git_repos(args, config):
|
|
|
242
244
|
# If branched specified, only match if the repo is matched _and_ branched
|
|
243
245
|
|
|
244
246
|
if matching and args.branched:
|
|
245
|
-
if git.branch(path=
|
|
247
|
+
if git.branch(path=repo_abs_path) == config[repo_path]['default branch']:
|
|
246
248
|
matching = False
|
|
247
249
|
|
|
248
250
|
# If modified specified, only match if the repo is matched _and_ modified
|
|
249
251
|
|
|
250
252
|
if matching and args.modified:
|
|
251
|
-
if not git.status(path=
|
|
253
|
+
if not git.status(path=repo_abs_path):
|
|
252
254
|
matching = False
|
|
253
255
|
|
|
254
256
|
# If tag filtering specified, only match if the repo is tagged with one of the specified tags
|
|
@@ -380,20 +382,22 @@ def mg_init(args, config, console):
|
|
|
380
382
|
# Add a new configuration entry containing the default branch, remote origin
|
|
381
383
|
# (if there is one) and name
|
|
382
384
|
|
|
385
|
+
abs_repo_path = absolute_repo_path(args, repo)
|
|
386
|
+
|
|
383
387
|
config[repo] = { }
|
|
384
388
|
|
|
385
|
-
default_branch = git.branch(path=
|
|
389
|
+
default_branch = git.branch(path=abs_repo_path)
|
|
386
390
|
|
|
387
391
|
if not default_branch:
|
|
388
392
|
error(f'Unable to determine default branch in [BLUE:{repo}]')
|
|
389
393
|
|
|
390
|
-
config['default branch']
|
|
394
|
+
config[repo]['default branch'] = default_branch
|
|
391
395
|
|
|
392
|
-
remote = git.remotes(path=
|
|
396
|
+
remote = git.remotes(path=abs_repo_path)
|
|
393
397
|
|
|
394
398
|
if 'origin' in remote:
|
|
395
399
|
config[repo]['origin'] = remote['origin']
|
|
396
|
-
config[repo]['repo name']= os.path.basename(remote['origin']).removesuffix('.git')
|
|
400
|
+
config[repo]['repo name'] = os.path.basename(remote['origin']).removesuffix('.git')
|
|
397
401
|
else:
|
|
398
402
|
config[repo]['repo name'] = os.path.basename(repo)
|
|
399
403
|
|
|
@@ -24,7 +24,7 @@ skilleter_thingy/gl.py,sha256=9zbGpKxw6lX9RghLkdy-Q5sZlqtbB3uGFO04qTu1dH8,5954
|
|
|
24
24
|
skilleter_thingy/gphotosync.py,sha256=M0yzt5IxCHezkCOQwz3Chn8oudY_M7PRffboIUFLedk,22477
|
|
25
25
|
skilleter_thingy/linecount.py,sha256=ehTN6VD76i4U5k6dXuYoiqSRHI67_BP-bziklNAJSKY,4309
|
|
26
26
|
skilleter_thingy/moviemover.py,sha256=QzUAWQzQ1AWWREIhl-VMaLo2h8MMhOekBnao5jGWV1s,4470
|
|
27
|
-
skilleter_thingy/multigit.py,sha256=
|
|
27
|
+
skilleter_thingy/multigit.py,sha256=o_gW9vlPJ_uUNRxRYm92kBUl1pQKpt76xoVIBg6XaLo,27814
|
|
28
28
|
skilleter_thingy/photodupe.py,sha256=l0hbzSLb2Vk2ceteg-x9fHXCEE1uUuFo84hz5rsZUPA,4184
|
|
29
29
|
skilleter_thingy/phototidier.py,sha256=BOu-cKHMivDlBqlRqv7sL3J6Ix1K2dxWWNcderldyZo,7818
|
|
30
30
|
skilleter_thingy/py_audit.py,sha256=xJm5k5qyeA6ii8mODa4dOkmP8L1drv94UHuxR54RsIM,4384
|
|
@@ -60,9 +60,9 @@ skilleter_thingy/thingy/run.py,sha256=6SNKWF01fSxzB10GMU9ajraXYZqAL1w0PXkqjJdr1U
|
|
|
60
60
|
skilleter_thingy/thingy/tfm_pane.py,sha256=oqy5zBzKwfbjbGqetbbhpKi4x5He7sl4qkmhUeqtdZc,19789
|
|
61
61
|
skilleter_thingy/thingy/tidy.py,sha256=71DCyj0VJrj52RmjQyj1eOiQJIfy5EIPHuThOrS6ZTA,5876
|
|
62
62
|
skilleter_thingy/thingy/venv_template.py,sha256=SsVNvSwojd8NnFeQaZPCRQYTNdwJRplpZpygbUEXRnY,1015
|
|
63
|
-
skilleter_thingy-0.1.
|
|
64
|
-
skilleter_thingy-0.1.
|
|
65
|
-
skilleter_thingy-0.1.
|
|
66
|
-
skilleter_thingy-0.1.
|
|
67
|
-
skilleter_thingy-0.1.
|
|
68
|
-
skilleter_thingy-0.1.
|
|
63
|
+
skilleter_thingy-0.1.6.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
|
|
64
|
+
skilleter_thingy-0.1.6.dist-info/METADATA,sha256=dKeSt_vg0wlpQmS5DOeHOQ5-q2Hpg9f6PQ1inIz7Ai0,29686
|
|
65
|
+
skilleter_thingy-0.1.6.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
66
|
+
skilleter_thingy-0.1.6.dist-info/entry_points.txt,sha256=u5ymS-KPljIGTnprV5yJsAjz7qgeT2BZ-Qo_Con_PFM,2145
|
|
67
|
+
skilleter_thingy-0.1.6.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
|
|
68
|
+
skilleter_thingy-0.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|