ide: Repo sync now shows 'cd' in console before git commands

git-svn-id: svn://ultimatepp.org/upp/trunk@15564 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-12-03 08:44:45 +00:00
parent c5bab37f6c
commit a71b7dfa69
5 changed files with 20 additions and 24 deletions

View file

@ -39,7 +39,7 @@ int UrepoConsole::System(const char *cmd)
return -1;
String out;
canceled = false;
cancel.Show(withcancel);
cancel.Show();
while(p.IsRunning() && IsOpen()) {
String h = p.Get();
out.Cat(h);
@ -82,6 +82,7 @@ int UrepoConsole::Git(const char *dir, const char *command)
{
String h = GetCurrentDirectory();
SetCurrentDirectory(dir);
list.Add(AttrText(String("cd ") + dir).SetFont(font().Bold().Italic()).Ink(SLtBlue()));
int code = CheckSystem(String() << "git " << command);
SetCurrentDirectory(h);
return code;