Skip to content

Commit

Permalink
Ignore file mode changes when writing version.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
donkirkby committed Oct 20, 2020
1 parent d5975a6 commit 6a3687b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ def main():
source_path = os.path.abspath(os.path.dirname(__file__))
version_filename = os.path.join(source_path, 'version.txt')
with open(version_filename, 'w') as version_file:
check_call(['git', 'describe', '--tags', '--dirty'],
# VirtualBox shared folder messes up file modes, so ignore them.
check_call(['git',
'-c', 'core.fileMode=false', # Ignore file mode
'describe',
'--tags',
'--dirty'],
cwd=source_path,
stdout=version_file)
try:
Expand Down

0 comments on commit 6a3687b

Please sign in to comment.