Skip to content

Commit

Permalink
Modify the setup to turn on linting for all git projects.
Browse files Browse the repository at this point in the history
Summary:
Existing git repos can get the advantage too by running 'git init'.  I
will give instructions for all this once it's in.

Test Plan: Fingers crossed.

Reviewers: benkomalo, alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D2181
  • Loading branch information
csilvers committed Apr 30, 2013
1 parent 2fa0b8b commit 1ea0bf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@

# Detect renames as well as copies
renames = copies

[init]
templatedir = ~/.git_template
4 changes: 4 additions & 0 deletions symlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ for file in .*; do
fi
ln -sfvn "$source" "$dest"
done

# Also create the pre-commit hook git symlink.
mkdir -p ~/.git_template/hooks
ln -snf $HOME/khan/devtools/khan-linter/githook.py ~/.git_template/hooks/commit-msg

0 comments on commit 1ea0bf6

Please sign in to comment.