File: playtree-save-refs

package info (click to toggle)
dgit 12.16
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 3,368 kB
  • sloc: perl: 13,443; sh: 6,466; python: 334; makefile: 324; tcl: 69
file content (10 lines) | stat: -rwxr-xr-x 270 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
set -e
set -o pipefail
shopt -s inherit_errexit # #514862, wtf
find -name .git -type d -exec sh -xec '
	cd "$1"
	git for-each-ref \
 --format='\''update refs/dgit-test-keep/g%(objectname) %(objectname)'\'' \
' x "{}" \; | \
	sort -u | git update-ref --stdin