]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
reset the branch before making changes
authorAlfredo Deza <adeza@redhat.com>
Wed, 28 Oct 2015 14:42:50 +0000 (10:42 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 28 Oct 2015 14:42:50 +0000 (10:42 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/roles/ceph-release/tasks/main.yml

index 53c81458b0537c718f80789af04e1685c3f15bd8..990c3d79824217905b38e6881a3558fa0b1bc649 100644 (file)
   # because if the repo exists then it probably has the origin already in there
   ignore_errors: yes
 
+- name: reset --hard to upstream
+  command: git fetch
+  command: git reset --hard /{{ branch }}
+  ignore_errors: yes
+  when: clean
+
 - name: clear the previous local tag
   command: git tag -d v{{ version }} chdir=ceph
   ignore_errors: yes
   ignore_errors: yes
   when: clean
 
-- name: reset --hard to upstream
-  command: git fetch
-  command: git reset --hard /{{ branch }}
-  ignore_errors: yes
-  when: clean
-
 - name: force git checkout {{ branch }} branch
   command: git checkout -f {{ branch }} chdir=ceph