skilleter-thingy 0.1.3__py3-none-any.whl → 0.1.5__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.

@@ -188,7 +188,7 @@ def find_working_trees(args):
188
188
 
189
189
  repos = set()
190
190
 
191
- for root, dirs, _ in os.walk(os.path.dirname(args.configuration_file)):
191
+ for root, dirs, _ in os.walk(os.path.dirname(args.configuration_file), topdown=True):
192
192
  if '.git' in dirs:
193
193
  relative_path = os.path.relpath(root)
194
194
 
@@ -204,6 +204,10 @@ def find_working_trees(args):
204
204
  yield relative_path
205
205
  repos.add(relative_path)
206
206
 
207
+ # Don't recurse down into hidden directories
208
+
209
+ dirs[:] = [d for d in dirs if d[0] != '.']
210
+
207
211
  ################################################################################
208
212
 
209
213
  def select_git_repos(args, config):
@@ -374,19 +378,22 @@ def mg_init(args, config, console):
374
378
 
375
379
  if repo not in config:
376
380
  # Add a new configuration entry containing the default branch, remote origin
377
- # and name
381
+ # (if there is one) and name
382
+
383
+ config[repo] = { }
378
384
 
379
385
  default_branch = git.branch(path=repo)
380
386
 
381
- config[repo] = {
382
- 'default branch': default_branch
383
- }
387
+ if not default_branch:
388
+ error(f'Unable to determine default branch in [BLUE:{repo}]')
389
+
390
+ config[repo]['default branch'] = default_branch
384
391
 
385
392
  remote = git.remotes(path=repo)
386
393
 
387
394
  if 'origin' in remote:
388
395
  config[repo]['origin'] = remote['origin']
389
- config[repo]['repo name']= os.path.basename(remote['origin']).removesuffix('.git')
396
+ config[repo]['repo name'] = os.path.basename(remote['origin']).removesuffix('.git')
390
397
  else:
391
398
  config[repo]['repo name'] = os.path.basename(repo)
392
399
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: skilleter_thingy
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: A collection of useful utilities, mainly aimed at making Git more friendly
5
5
  Author-email: John Skilleter <john@skilleter.org.uk>
6
6
  Project-URL: Home, https://skilleter.org.uk
@@ -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=AM3ChaDhiICHxREESFZCpZgANAWM02O5anAHMBgzoLU,27414
27
+ skilleter_thingy/multigit.py,sha256=SW7Db9DaucTdTq7ozqzbRvIKObt8XhX4z4J5p-oiGO0,27667
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.3.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
64
- skilleter_thingy-0.1.3.dist-info/METADATA,sha256=KjuJrD2b8-OGMyfxRXHol_asMv7BHN7exUi6YATfSVg,29686
65
- skilleter_thingy-0.1.3.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
66
- skilleter_thingy-0.1.3.dist-info/entry_points.txt,sha256=u5ymS-KPljIGTnprV5yJsAjz7qgeT2BZ-Qo_Con_PFM,2145
67
- skilleter_thingy-0.1.3.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
68
- skilleter_thingy-0.1.3.dist-info/RECORD,,
63
+ skilleter_thingy-0.1.5.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
64
+ skilleter_thingy-0.1.5.dist-info/METADATA,sha256=5JrquqaBtg8bIaA3nafDa8cxTfA-Jeevr3ZWfE3NnuY,29686
65
+ skilleter_thingy-0.1.5.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
66
+ skilleter_thingy-0.1.5.dist-info/entry_points.txt,sha256=u5ymS-KPljIGTnprV5yJsAjz7qgeT2BZ-Qo_Con_PFM,2145
67
+ skilleter_thingy-0.1.5.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
68
+ skilleter_thingy-0.1.5.dist-info/RECORD,,