summaryrefslogtreecommitdiff
path: root/src/plugins/git/gitversioncontrol.cpp
diff options
context:
space:
mode:
authorRay Donnelly <mingw.android@gmail.com>2015-05-09 14:49:19 +0100
committerRay Donnelly <mingw.android@gmail.com>2015-05-11 11:23:11 +0000
commitf5dcc93b7e816a7d728082a9f8261595104abe89 (patch)
tree48b21b2479784f03162a13f1fcfa500f15bddc9f /src/plugins/git/gitversioncontrol.cpp
parent79d3d2348830508d6bc4789027a9c5b009eba7bd (diff)
downloadqt-creator-f5dcc93b7e816a7d728082a9f8261595104abe89.tar.gz
Debugger: Handle case of os.path.sep being '/'
On MSYS2, if QtCreator is launched from one of the msys2 shells then the MSYSTEM env. var is set and our Pythons set os.sep and os.path.sep to '/' so that it aligns with the default separator of those shells. fromNativePath(str) then fails to convert '\' seprators embedded in binaries since str.replace('/', '/') is a noop. The operation we want here is to convert all '\' to '/' anyway so this is more explicit regardless of any opinions on our choice to dynamically vary os.sep and os.path.sep Change-Id: I76c05b188abca41c6a1b516c68b584e0c06e7235 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/git/gitversioncontrol.cpp')
0 files changed, 0 insertions, 0 deletions