git pull in dir

This commit is contained in:
Artur Kuś 2025-03-24 19:52:10 +01:00
parent d7656b2570
commit 007c2dfb0f
1 changed files with 3 additions and 3 deletions

View File

@ -16,12 +16,12 @@ def git_take( projects ){
dir( project ){
git_reset = git_take +" reset --hard "
sh( git_reset )
}
git_take = git_take +"pull"
sh( git_take )
}
}else{
git_take = git_take +"clone "+ "https://git.arti24.eu/gitea/"+project+".git"
}
sh( git_take )
dir( project ){
sh( "git log -n 1");
}