1830 if os.path.splitdrive(repodir)[1] == os.sep: |
1831 if os.path.splitdrive(repodir)[1] == os.sep: |
1831 return |
1832 return |
1832 |
1833 |
1833 import sys |
1834 import sys |
1834 editor = sys.argv[0].replace(".py", "_editor.py") |
1835 editor = sys.argv[0].replace(".py", "_editor.py") |
1835 env = {"GIT_EDITOR": "{0} {1}".format(sys.executable, editor)} |
1836 env = {"GIT_EDITOR": "{0} {1}".format( |
|
1837 Globals.getPythonExecutable(), editor)} |
1836 |
1838 |
1837 args = self.initCommand("commit") |
1839 args = self.initCommand("commit") |
1838 |
1840 |
1839 dia = GitDialog(self.tr('Committing failed merge'), self) |
1841 dia = GitDialog(self.tr('Committing failed merge'), self) |
1840 res = dia.startProcess(args, repodir, environment=env) |
1842 res = dia.startProcess(args, repodir, environment=env) |
3219 if os.path.splitdrive(repodir)[1] == os.sep: |
3221 if os.path.splitdrive(repodir)[1] == os.sep: |
3220 return False |
3222 return False |
3221 |
3223 |
3222 import sys |
3224 import sys |
3223 editor = sys.argv[0].replace(".py", "_editor.py") |
3225 editor = sys.argv[0].replace(".py", "_editor.py") |
3224 env = {"GIT_EDITOR": "{0} {1}".format(sys.executable, editor)} |
3226 env = {"GIT_EDITOR": "{0} {1}".format( |
|
3227 Globals.getPythonExecutable(), editor)} |
3225 |
3228 |
3226 args = self.initCommand("cherry-pick") |
3229 args = self.initCommand("cherry-pick") |
3227 args.append("--continue") |
3230 args.append("--continue") |
3228 |
3231 |
3229 dia = GitDialog(self.tr('Copy Changesets (Continue)'), self) |
3232 dia = GitDialog(self.tr('Copy Changesets (Continue)'), self) |