mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-10 22:58:18 +00:00
Release: use --depth 1 to prevent git overload
This commit is contained in:
@@ -151,7 +151,7 @@ def make_release(version):
|
|||||||
proc = subprocess.Popen(['git','checkout', "-b", "release-" + RELEASE_VERSION], stdout = subprocess.PIPE, cwd = temp_dir.name)
|
proc = subprocess.Popen(['git','checkout', "-b", "release-" + RELEASE_VERSION], stdout = subprocess.PIPE, cwd = temp_dir.name)
|
||||||
proc.wait()
|
proc.wait()
|
||||||
|
|
||||||
proc = subprocess.Popen(['git','pull', "origin", "release-" + RELEASE_VERSION], stdout = subprocess.PIPE, cwd = temp_dir.name)
|
proc = subprocess.Popen(['git','pull', "origin", "release-" + RELEASE_VERSION, "--depth", "1"], stdout = subprocess.PIPE, cwd = temp_dir.name)
|
||||||
proc.wait()
|
proc.wait()
|
||||||
|
|
||||||
proc = subprocess.Popen(['git','log', "--oneline"], stdout = subprocess.PIPE, cwd = temp_dir.name)
|
proc = subprocess.Popen(['git','log', "--oneline"], stdout = subprocess.PIPE, cwd = temp_dir.name)
|
||||||
@@ -331,7 +331,7 @@ def make_release(version):
|
|||||||
while not(already_released):
|
while not(already_released):
|
||||||
|
|
||||||
print("git pull origin master...")
|
print("git pull origin master...")
|
||||||
proc = subprocess.Popen(['git','pull', "origin", "master"], stdout = subprocess.PIPE, cwd = temp_dir.name)
|
proc = subprocess.Popen(['git','pull', "origin", "master", "--depth", "1"], stdout = subprocess.PIPE, cwd = temp_dir.name)
|
||||||
proc.wait()
|
proc.wait()
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
for line in proc.stdout:
|
for line in proc.stdout:
|
||||||
|
|||||||
Reference in New Issue
Block a user