jolt 0.9.414__py3-none-any.whl → 0.9.416__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.
jolt/plugins/git.py CHANGED
@@ -114,10 +114,13 @@ class GitRepository(object):
114
114
  self._fetch_origin()
115
115
  self.tools.run("git checkout -f FETCH_HEAD", output_on_error=True)
116
116
  else:
117
+ # Get configurable extra clone options
118
+ extra_clone_options = config.get("git", "clone_options", "")
119
+
117
120
  if refpath and os.path.isdir(refpath):
118
- self.tools.run("git clone --reference-if-able {0} {1} {2}", refpath, self.url, self.path, output_on_error=True)
121
+ self.tools.run("git clone --reference-if-able {0} {1} {2} {3}", refpath, extra_clone_options, self.url, self.path, output_on_error=True)
119
122
  else:
120
- self.tools.run("git clone {0} {1}", self.url, self.path, output_on_error=True)
123
+ self.tools.run("git clone {0} {1} {2}", extra_clone_options, self.url, self.path, output_on_error=True)
121
124
 
122
125
  self._init_repo()
123
126
  raise_error_if(
@@ -126,8 +129,11 @@ class GitRepository(object):
126
129
 
127
130
  @utils.retried.on_exception(JoltCommandError, pattern="Command failed: git fetch", count=6, backoff=[2, 5, 10, 15, 20, 30])
128
131
  def _fetch_origin(self):
132
+ # Get configurable extra clone options
133
+ extra_fetch_options = config.get("git", "fetch_options", "")
134
+
129
135
  with self.tools.cwd(self.path):
130
- self.tools.run("git fetch origin", output_on_error=True)
136
+ self.tools.run("git fetch {0} origin", extra_fetch_options, output_on_error=True)
131
137
 
132
138
  @utils.cached.instance
133
139
  def diff_unchecked(self):
@@ -257,11 +263,15 @@ class GitRepository(object):
257
263
  if commit and not self.is_valid_sha(commit):
258
264
  commit = None
259
265
 
266
+ # Get configurable extra clone options
267
+ extra_fetch_options = config.get("git", "fetch_options", "")
268
+
260
269
  refspec = " ".join(self.default_refspecs + self.refspecs)
261
270
  with self.tools.cwd(self.path):
262
271
  log.info("Fetching {0} from {1}", commit or refspec or 'commits', self.url)
263
272
  self.tools.run(
264
- "git fetch --force --prune {url} {what}",
273
+ "git fetch --force --prune {extra_fetch_options} {url} {what}",
274
+ extra_fetch_options=extra_fetch_options,
265
275
  url=self.url,
266
276
  what=commit or refspec or '',
267
277
  output_on_error=True)
jolt/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.9.414"
1
+ __version__ = "0.9.416"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jolt
3
- Version: 0.9.414
3
+ Version: 0.9.416
4
4
  Summary: A task executor
5
5
  Home-page: https://github.com/srand/jolt
6
6
  Author: Robert Andersson
@@ -23,7 +23,7 @@ jolt/tasks.py,sha256=45UcZYaXV2-KQZHTsA4_TCiY1G8Bvpf6M7K2_R6ELJo,115963
23
23
  jolt/timer.py,sha256=PE-7vmsqZpF73e_cKSsrhd36-A7fJ9_XGYI_oBWJn5w,644
24
24
  jolt/tools.py,sha256=A9mbyZkp4NH9Xkroz5KKhsvn8jIqnvnogVaI4VbgM20,80171
25
25
  jolt/utils.py,sha256=bbp5mMhQRdq7sHDAxaqVVgD4QGGWXcwMCyIgG8LvyoA,19133
26
- jolt/version.py,sha256=ULqTpfbLz-5Z_aP6GcjaiAJnQO__jRJkmSUyiuS_zKk,24
26
+ jolt/version.py,sha256=p1MX2OcVDc2xIdgo7cwEubHz_Rg6o4gW5P79XnjpT3Y,24
27
27
  jolt/version_utils.py,sha256=tNCGT6ZmSGFHW1aw2Hx1l19m-RR1UnTN6xJV1I54KRw,3900
28
28
  jolt/xmldom.py,sha256=SbygiDUMYczzWGxXa60ZguWS6Nztg8gDAirdbtjT15I,5982
29
29
  jolt/bin/fstree-darwin-x86_64,sha256=i4Ppbdr7CxsEhJzWpy3GMB5Gn5ikmskh41MyUwQS3-o,29549000
@@ -47,7 +47,7 @@ jolt/plugins/email.xslt,sha256=3vrrfnG-KH_cfJq6RDOXHKQxKd-6s28qy4znapGaciM,8513
47
47
  jolt/plugins/environ.py,sha256=k382rvEKWj-nlibJcCUWcYtYheU8p9df9ZY0DAAkjDE,3561
48
48
  jolt/plugins/gdb.py,sha256=gg-H_IQvRRPDZpk-djdIU7j3PO8CDINCSxWOemD2fA8,6288
49
49
  jolt/plugins/gerrit.py,sha256=tc8NeIDAg3mZJINU5aZg1fs3YsaVxM_MvkHa149aAIs,768
50
- jolt/plugins/git.py,sha256=PJhOp0uWKMylJoNqHGm7NRqIAU20kv9fc2ZnfvSTqjo,21571
50
+ jolt/plugins/git.py,sha256=1qhv3lR_I291Wt0A6sF5c8kV1kvYoXiQSQAhMQWhkcw,22083
51
51
  jolt/plugins/golang.py,sha256=vV4iRoJpWkyfrBa96s6jgU8Sz8GnGl-lzG_FSj5epzQ,2049
52
52
  jolt/plugins/googletest.py,sha256=9aV_T21JY84YgeSiaV4ppZhVs1XFt19m3pPrJW2iGfI,18708
53
53
  jolt/plugins/http.py,sha256=HwuABHR2tuWm_jBdQpCO3AMkjFdwOzUfEi26X-2v_y8,3816
@@ -85,8 +85,8 @@ jolt/templates/cxxexecutable.cmake.template,sha256=f0dg1VOFlamlF8fuHFTki5dsJ2ssS
85
85
  jolt/templates/cxxlibrary.cmake.template,sha256=GMEG2G3QoY3E5fsNer52zOqgM221-abeCkV__mVbZ94,1750
86
86
  jolt/templates/export.sh.template,sha256=PKkflGXFbq70EIsowqcnLvzbnEDnqh_WgC4E_JNT0VE,1937
87
87
  jolt/templates/timeline.html.template,sha256=xdqvFBmhE8XRQaWgcIFBVbd__9HdRq6O-U0o276PyjU,1222
88
- jolt-0.9.414.dist-info/METADATA,sha256=hf96S079kixNuNh4JBc26tYnga1mekWWuxJVDkAIneY,6691
89
- jolt-0.9.414.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
90
- jolt-0.9.414.dist-info/entry_points.txt,sha256=VZ-QH38Z9HJc1O57wfzr-soHn6exwc3N0TSrRum4tYg,44
91
- jolt-0.9.414.dist-info/top_level.txt,sha256=HwzVmAwUrvCUUHRi3zUfcpdKTsdNrZmPCvsrsWSFyqE,5
92
- jolt-0.9.414.dist-info/RECORD,,
88
+ jolt-0.9.416.dist-info/METADATA,sha256=euBUFxxP0BbJjo9-oA2GE7_dgJUzg1pzQhatqkku3S8,6691
89
+ jolt-0.9.416.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
90
+ jolt-0.9.416.dist-info/entry_points.txt,sha256=VZ-QH38Z9HJc1O57wfzr-soHn6exwc3N0TSrRum4tYg,44
91
+ jolt-0.9.416.dist-info/top_level.txt,sha256=HwzVmAwUrvCUUHRi3zUfcpdKTsdNrZmPCvsrsWSFyqE,5
92
+ jolt-0.9.416.dist-info/RECORD,,
File without changes