Create a gist now

Instantly share code, notes, and snippets.

@baron /gist
Created Mar 23, 2011

What would you like to do?
gist
(defun force-git-add-after-el-get (package-path)
(let* ((git-executable (el-get-executable-find "git"))
(name (format "*git add subdir %s*" package)) )
(message (format "cd %s && %s add %s/" el-get-dir git-executable package-path))
(shell-command (format "cd %s && %s add %s/" el-get-dir git-executable package-path))))
(add-hook 'el-get-post-install-hooks 'force-git-add-after-el-get)
(add-hook 'el-get-post-update-hooks 'force-git-add-after-el-get)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment