Add the autotest repo as the origin for the git repo,
making the autotest home dir to actually behave as
a clone of the upstream tree.

Signed-off-by: Lucas Meneghel Rodrigues <l...@redhat.com>
---
 contrib/install-autotest-server.sh |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/contrib/install-autotest-server.sh 
b/contrib/install-autotest-server.sh
index c1c466c..2f517d1 100755
--- a/contrib/install-autotest-server.sh
+++ b/contrib/install-autotest-server.sh
@@ -245,7 +245,8 @@ then
     print_log "INFO" "Cloning autotest repo in $ATHOME"
     cd $ATHOME
     git init
-    git fetch -f -u -t git://github.com/autotest/autotest.git master:master
+    git remote add origin git://github.com/autotest/autotest.git
+    git pull
     git checkout master
 else
     print_log "INFO" "Updating autotest repo in $ATHOME"
-- 
1.7.10.1

_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to