Commit 3aadce42 by Ned Batchelder

Merge pull request #2903 from edx/ned/add-repo-status-script

Add show-repo-heads script for helping with diagnosis
parents dbe0a14c 053c8060
......@@ -35,6 +35,23 @@
- install
- install:configuration
- name: create show-repo-heads script
template: >
dest={{ edx_ansible_app_dir}}/show-repo-heads
src=show-repo-heads.j2 owner={{ edx_ansible_user }} group={{ edx_ansible_user }} mode=755
tags:
- install
- install:configuration
- name: create a symlink for show-repo-heads script
file: >
src={{ edx_ansible_app_dir }}/show-repo-heads
dest={{ COMMON_BIN_DIR }}/show-repo-heads
state=link
tags:
- install
- install:configuration
- name: create a symlink for ansible-playbook
file: >
src={{ edx_ansible_venv_bin }}/ansible-playbook
......
#!/usr/bin/env bash
#
# Display the head commit for all our git repos
# Look in .git directories. Only two levels down to avoid virtualenvs.
for d in {{ COMMON_APP_DIR }}/*/*/.git; do
d=$(dirname $d)
echo "---- $d ----"
git -C $d log -1 --format='%ci (%h) %cn: %s %d'
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment