Skip to content

Commit fe0b257

Browse files
committed
modified: setup.py
modified: singularity/build.py
1 parent db845e2 commit fe0b257

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
name="singularity",
88

99
# Version number:
10-
version="0.28",
10+
version="0.29",
1111

1212
# Application author details:
1313
author="Vanessa Sochat",

singularity/build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def run_build(build_dir=None,spec_file=None,repo_url=None,token=None,size=None,
242242
:param spec_file: the spec_file name to use, assumed to be in git repo
243243
:param repo_url: the url to download the repo from
244244
:param repo_id: the repo_id to uniquely identify the repo (in case name changes)
245-
:param commit: the commit to checkout
245+
:param commit: the commit to checkout. If none provided, will use most recent.
246246
:param size: the size of the image to build. If none set, builds default 1024.
247247
:param credential: the credential to send the image to.
248248
:param verbose: print out extra details as we go (default True)
@@ -291,10 +291,10 @@ def run_build(build_dir=None,spec_file=None,repo_url=None,token=None,size=None,
291291
logging.info('Checking out commit %s',params['commit'])
292292
os.system('git checkout %s .' %(params['commit']))
293293

294-
# From here on out commit is used as a unique id, if we don't have one, randomly make one
294+
# From here on out commit is used as a unique id, if we don't have one, we use current
295295
else:
296-
params['commit'] = uuid.uuid4().__str__()
297-
logging.warning("commit still not found in build, setting unique id to %s",params['commit'])
296+
params['commit'] = repo.commit().__str__()
297+
logging.warning("commit not specified, setting to current %s", params['commit'])
298298

299299

300300
if os.path.exists(spec_file):

0 commit comments

Comments
 (0)