~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to git-recent.bash

  • Committer: Aaron Bentley
  • Date: 2015-09-02 17:46:47 UTC
  • mto: This revision was merged to the branch mainline in revision 1082.
  • Revision ID: aaron.bentley@canonical.com-20150902174647-06vmnsooo6yzd46t
Stop supplying env to subprocess calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
REPO=$1
4
 
shift
5
 
PRIORITIES=$@
6
 
 
7
 
cd $REPO
8
 
git fetch -p -q 2>&1>/dev/null
9
 
RECENT=$(git for-each-ref \
10
 
    --format='gitbranch:%(refname:short):github.com/juju/juju' \
11
 
    --sort -committerdate --count 11 refs/remotes/origin/ | \
12
 
    sed -e '/HEAD/d; s,origin/,,' | tac | tr -s '\n' ' ')
13
 
echo "$PRIORITIES $RECENT"