aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib.pm
diff options
context:
space:
mode:
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index 066dc12..e50c04c 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -299,9 +299,9 @@ sub git_sbo_tree {
if (-d "$repo_path/.git" and check_git_remote($repo_path, $url)) {
my $cwd = getcwd();
chdir $repo_path;
- system(qw/ git reset HEAD --hard /) == 0 or chdir $cwd and return 0;
- system(qw/ git fetch /) == 0 or chdir $cwd and return 0;
- system(qw/ git pull /) == 0 or chdir $cwd and return 0;
+ system(qw! git fetch !) == 0 or chdir $cwd and return 0;
+ system(qw! git reset --hard origin !) == 0 or chdir $cwd and return 0;
+ unlink "$repo_path/SLACKBUILDS.TXT";
chdir $cwd and return 1;
} else {
my $cwd = getcwd();