File: post-checkout

package info (click to toggle)
git-ubuntu 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,688 kB
  • sloc: python: 13,378; sh: 480; makefile: 2
file content (15 lines) | stat: -rwxr-xr-x 481 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

EMPTY_TREE=4b825dc642cb6eb9a060e54bf8d69288fbee4904
NEW_HEAD=$2

if git ls-tree -r -d $NEW_HEAD |awk '{print $3}'|grep -q $EMPTY_TREE; then
    echo >&2
    echo "WARNING: empty directories exist but are not tracked by git:" >&2
    echo >&2
    git ls-tree -r -d $NEW_HEAD|grep $EMPTY_TREE|awk '{print $4}' >&2
    echo >&2
    echo "These will silently disappear on commit, causing extraneous" >&2
    echo "unintended changes. See: LP: #1687057." >&2
    echo >&2
fi