# # patch "git.cc" # from [9641501b4dbba1b8856fdb5169ccfe2fc56c4098] # to [78ab61d53da4bcf05d4fcffb563249d8a42d25fc] # ======================================================================== --- git.cc 9641501b4dbba1b8856fdb5169ccfe2fc56c4098 +++ git.cc 78ab61d53da4bcf05d4fcffb563249d8a42d25fc @@ -151,8 +151,9 @@ tmpfile += "/mtoutput.XXXXXX"; int fd = monotone_mkstemp(tmpfile); - L(F("Capturing cmd output: %s") % ("(" + str + ") >" + tmpfile)); - N(system(string("(" + str + ") >" + tmpfile).c_str()), + string cmdline("(" + str + ") >" + tmpfile); + L(F("Capturing cmd output: %s") % cmdline); + N(system(cmdline.c_str()), F("git command %s failed") % str); filebuf &fb = *new filebuf; fb.open(tmpfile.c_str(), ios::in);