From 82bab9715c8018b238f13fa02c27af28ece97035 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 13 Feb 2016 20:37:13 +0100 Subject: git fetch; git reset --hard origin; instead of pulling. This fixes #27 --- SBO-Lib/lib/SBO/Lib.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'SBO-Lib/lib') 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(); -- cgit v1.2.3