- reuse merge uri for autopush
This commit is contained in:
Johannes Schlatow
2010-12-23 22:15:11 +01:00
parent 4840708090
commit d44e592635
2 changed files with 110 additions and 8 deletions

View File

@@ -590,13 +590,6 @@ void handleMerge (std::string& outs)
Uri uri (file, "merge");
uri.parse();
if (sAutopush == "ask")
{
// expand uri
Uri push (file, "push");
pushfile = push.data;
}
if (uri.data.length ())
{
Directory location (context.config.get ("data.location"));
@@ -627,10 +620,11 @@ void handleMerge (std::string& outs)
if (tmpfile != "")
remove (tmpfile.c_str ());
if ( ((sAutopush == "ask") && (confirm ("Would you like to push the merged changes to \'" + pushfile + "\'?")) )
if ( ((sAutopush == "ask") && (confirm ("Would you like to push the merged changes to \'" + uri.data + "\'?")) )
|| (bAutopush) )
{
std::string out;
context.task.set ("description", uri.data);
handlePush (out);
}
}