Skip to content

Instantly share code, notes, and snippets.

Created January 9, 2014 20:43
Show Gist options
  • Save anonymous/8341656 to your computer and use it in GitHub Desktop.
Save anonymous/8341656 to your computer and use it in GitHub Desktop.
repo_cr_ots:
git.latest:
- name: ssh://git_user@server/usr/local/git/ots.git
- target: /var/www/ots
- rev: {{ revision }}
internal_reset_ots:
cmd.run:
- name: "cd /var/www/ots; git reset --hard HEAD^"
include:
- repo.cr.internal
extend:
repo_cr_ots:
git.latest:
- force: True
- force_checkout: True
require:
- internal_reset_ots
@gravyboat
Copy link

include:
  - repo.cr.internal

internal_reset_ots:
  cmd.run:
    - name: "cd /var/www/ots; git reset --hard HEAD^"

extend:
  repo_cr_ots:
    git.latest:
      - force: True
      - force_checkout: True
      - require:
        - cmd: internal_reset_ots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment