# # patch "git.cc" # from [7d8dccda87b7bf15ad601059ed389ea19aeb4dd3] # to [ad476eb0e56f3e216e1546d5fffbea711b5507cf] # ======================================================================== --- git.cc 7d8dccda87b7bf15ad601059ed389ea19aeb4dd3 +++ git.cc ad476eb0e56f3e216e1546d5fffbea711b5507cf @@ -35,6 +35,7 @@ #include #include +#include // strdup(), woo-hoo! #include #include @@ -627,7 +628,7 @@ F("path %s does not exist") % gitrepo.string()); N(fs::is_directory(gitrepo), F("path %s is not a directory") % gitrepo.string()); - putenv((char*)(string("GIT_DIR=")+gitrepo.native_directory_string()).c_str()); + putenv((char*)strdup((string("GIT_DIR=")+gitrepo.native_directory_string()).c_str())); N(app.branch_name() != "", F("need base --branch argument for importing"));