change git directory

This commit is contained in:
litingt 2014-09-10 21:30:11 -04:00
parent 088ee8e9cd
commit c66fe0d131

4
xCAT-server/share/xcat/tools/xCATreg Normal file → Executable file
View File

@ -650,6 +650,8 @@ sub git_update {
my $lastcommit;
my $commitlog1;
my $lastcommitfile;
my $codedir;
$codedir="/regression/code/xcat-core";
my $gitup;
$gitup="/tmp/gitup";
@ -662,6 +664,8 @@ sub git_update {
# exit;
#}
chdir $codedir;
$res = system("git checkout $branch");
if ($res != 0){
send_msg(0, "git checkout failed");