src/eric7/Plugins/VcsPlugins/vcsGit/git.py

branch
eric7
changeset 10403
ea3320d5e8e9
parent 10069
435cc5875135
child 10438
4cd7e5a8b3cf
equal deleted inserted replaced
10402:1b63ffeca110 10403:ea3320d5e8e9
347 @return flag indicating an execution without errors (boolean) 347 @return flag indicating an execution without errors (boolean)
348 """ 348 """
349 status = self.vcsCheckout(vcsDataDict, projectDir) 349 status = self.vcsCheckout(vcsDataDict, projectDir)
350 adminPath = os.path.join(projectDir, self.adminDirOrFile) 350 adminPath = os.path.join(projectDir, self.adminDirOrFile)
351 if os.path.isdir(adminPath): 351 if os.path.isdir(adminPath):
352 shutil.rmtree(adminPath, True) 352 shutil.rmtree(adminPath, ignore_errors=True)
353 else: 353 else:
354 os.remove(adminPath) 354 os.remove(adminPath)
355 if os.path.exists(os.path.join(projectDir, Git.IgnoreFileName)): 355 if os.path.exists(os.path.join(projectDir, Git.IgnoreFileName)):
356 os.remove(os.path.join(projectDir, Git.IgnoreFileName)) 356 os.remove(os.path.join(projectDir, Git.IgnoreFileName))
357 return status 357 return status

eric ide

mercurial