Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update files in work dir for non-bare repo #27

Open
tg-x opened this issue Sep 6, 2010 · 5 comments
Open

Update files in work dir for non-bare repo #27

tg-x opened this issue Sep 6, 2010 · 5 comments
Labels

Comments

@tg-x
Copy link

tg-x commented Sep 6, 2010

if repo type is non-bare the checked out files should be updated in the repo after a commit
(i tried to fix this with a post-commit hook but hooks does not seem to be run either)

@marvin2k
Copy link

It's not wise to update non-bare repos by default, since there could be local changes, which would be overwritten. People will be angry because they lost their work. A warning/error message would maybe helpfull, if one uses a non-bare repo

I solved a similar issue using a second repo, which pulls and pushes manually into the bare repo. Works, sort of...

Did you made your post-commit hook executable?

@tg-x
Copy link
Author

tg-x commented Sep 10, 2010

well, in my case I know there won't be local changes, thus it would be useful to have an option in the config for this, I don't say it should be the default

or at least the hooks should be run, I checked the post-commit is executable and it's not being called after saving a page

@marvin2k
Copy link

hm, you are right, mine isn't called either... I can't find a place, where a proper "git commit" from gitrb is called, only "blob new"... But I'm not a pro...

@minad
Copy link
Owner

minad commented Sep 11, 2010

gitrb has a transaction method which does the commit. post-commit hooks are currently ignored by gitrb. I added an issue to gitrb: http://github.com/minad/gitrb/issues/issue/8

@minad
Copy link
Owner

minad commented Oct 16, 2012

Rugged is now used to access the git repository. See issue libgit2/libgit2#964

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants