TheLastBen commited on
Commit
a1ac558
1 Parent(s): a5cf49d

Update Scripts/mainpaperspacev2.py

Browse files
Files changed (1) hide show
  1. Scripts/mainpaperspacev2.py +4 -2
Scripts/mainpaperspacev2.py CHANGED
@@ -827,12 +827,14 @@ def testui(Custom_Path, Previous_Session_Name, Session_Name, User, Password):
827
 
828
  os.chdir('/notebooks/sd')
829
  if not os.path.exists('stable-diffusion-webui'):
830
- call('git clone -q --depth 1 --branch master https://github.com/AUTOMATIC1111/stable-diffusion-webui', shell=True)
831
 
832
  os.chdir('/notebooks/sd/stable-diffusion-webui/')
833
  call('git reset --hard', shell=True, stdout=open('/dev/null', 'w'))
834
  print('')
835
- call('git pull', shell=True, stdout=open('/dev/null', 'w'))
 
 
836
  os.chdir('/notebooks')
837
  clear_output()
838
 
 
827
 
828
  os.chdir('/notebooks/sd')
829
  if not os.path.exists('stable-diffusion-webui'):
830
+ call('git clone -q --branch master https://github.com/AUTOMATIC1111/stable-diffusion-webui', shell=True)
831
 
832
  os.chdir('/notebooks/sd/stable-diffusion-webui/')
833
  call('git reset --hard', shell=True, stdout=open('/dev/null', 'w'))
834
  print('')
835
+ call('!git fetch --unshallow', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
836
+ call('git checkout 15adff3d6d5e8ba186b3df6eee8a8d774c8f3879', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
837
+ #call('git pull', shell=True, stdout=open('/dev/null', 'w'))
838
  os.chdir('/notebooks')
839
  clear_output()
840