Commit c19672e4 authored by Leigh Stoller's avatar Leigh Stoller

Remove /local/repository from the node before cloning the new repo.

David is going to add this to prepare so we do not create images with
stale repos on them.
parent 462c5daa
#!/usr/bin/perl -wT #!/usr/bin/perl -wT
# #
# Copyright (c) 2007-2018 University of Utah and the Flux Group. # Copyright (c) 2007-2019 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -1475,7 +1475,7 @@ sub SetRepo($$$$$$) ...@@ -1475,7 +1475,7 @@ sub SetRepo($$$$$$)
# #
my $owner = $geniuser->uid(); my $owner = $geniuser->uid();
my $command = "cd /local && sudo chmod 777 . && umask 002 && ". my $command = "cd /local && sudo chmod 777 . && umask 002 && ".
"rm -rf repository && ". "sudo rm -rf repository && ".
"git clone -n '$repourl' repository && " . "git clone -n '$repourl' repository && " .
"cd repository && " . "cd repository && " .
"git config --add core.sharedRepository group && ". "git config --add core.sharedRepository group && ".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment