Skip to content
Snippets Groups Projects
Commit 5fb98ae9 authored by jurgenhaas's avatar jurgenhaas
Browse files

#2 Fetch before tracking remote branch

parent 51e3f1c7
No related branches found
Tags v0.1.3
No related merge requests found
Pipeline #
......@@ -115,11 +115,11 @@ class Handler {
$fs->mkdir($path);
$repository->init();
$repository->addRemote('origin', $uri);
$repository->getCaller()->execute('branch --set-upstream-to origin/' . $version . ' ' . $version);
}
$repository->fetch();
$repository->checkout($version);
$repository->getCaller()->execute('branch --set-upstream-to origin/' . $version . ' ' . $version);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment