Commit graph

794 commits

Author SHA1 Message Date
Sitaram Chamarty b916a07d28 update hook: using non-std branches revealed an unnecessary check for refs/heads/; removed 2009-08-30 17:04:27 +05:30
Sitaram Chamarty e55fc3b7f3 minor: remove needless "our"s 2009-08-30 13:28:12 +05:30
Sitaram Chamarty 08305aa482 install streamlining:
- install.sh is now install.pl (had to happen sooner or later!)
  - now handles updates more gracefully, doesn't overwrite important stuff :)
  - makes the install sequence much easier to understand
    (just run it and follow the prompts!)

  - made ~/.gitolite.rc much clearer to edit
2009-08-30 13:28:08 +05:30
Sitaram Chamarty b1c329dbb6 doc fixes:
- install is even clearer now (I hope!), esp to people with root
    access who seem to expect something else :)
  - used path vars (from ~/.gitolite.rc) more consistently, and
  - added refeerences to ~/.gitolite.rc for resolving them
2009-08-30 12:08:54 +05:30
Sitaram Chamarty 4c2c55f2d1 admin doc: clarified the instructions a little more
...it seems some admins are, well, not quite ready to be admins :)

(also some minor typo fixes slipped in)
2009-08-29 19:15:59 +05:30
Sitaram Chamarty d27af37d21 faq-tips-etc: completely revamped; big "differences from gitosis" section, etc 2009-08-29 19:08:24 +05:30
Sitaram Chamarty 3522087591 compile: REPO_BASE need not be under $HOME
In the "create new repos" loop, we need an absolute value for REPO_BASE, in
order to be able to chdir back and forth.  But (taking the "normal user with
no privileges" assumption too far!) we assumed REPO_BASE would be within
$HOME, and relative to it.  So it fails when someone wants the repo_base
elsewhere.

Now we don't prefix $HOME if REPO_BASE is already absolute (begins with a "/")

bug reported by evocallaghan
2009-08-29 11:41:12 +05:30
Sitaram Chamarty 23e4c209eb README: added para about selective rewind, plus some minor fixes 2009-08-28 20:58:05 +05:30
Sitaram Chamarty 4bea8a9ae7 cp -a changed to cp -R for solaris compat 2009-08-28 20:58:05 +05:30
Sitaram Chamarty 491b3fac36 you can't array-deref an undefined value! 2009-08-28 20:57:09 +05:30
Sitaram Chamarty 3161b0ac86 migration document added 2009-08-28 09:50:34 +05:30
Sitaram Chamarty 00b4baa435 doc changes after split 2009-08-28 09:50:34 +05:30
Sitaram Chamarty 4e74652b38 source code changes after splitting into src/doc/conf 2009-08-28 09:50:27 +05:30
Sitaram Chamarty f0099a125e reduce clutter by making src, doc, conf subdirectories 2009-08-27 14:00:00 +05:30
Sitaram Chamarty 3ddc9087d3 first production use: @all, leading slash
I had to make two minor fixes while migrating my work repos:

1.  I forgot to honor '@all'; oops!

    While I was about it, I also fixed the "access denied"
    message to show what rights were being tried when it
    failed.

2.  I forgot that URLs can have leading slashes (I myself
    only use URLs like gs:reponame.git, where gs is an ssh
    stanza that describes the git server in question).
2009-08-27 13:26:18 +05:30
Sitaram Chamarty 522b35434e compile/INSTALL: multi-key feature code+doc 2009-08-27 05:45:48 +05:30
Sitaram Chamarty 43b658660d add ".mkd" to docs so gh will render them nicely,
plus a couple of minor fixes
2009-08-27 05:44:23 +05:30
Sitaram Chamarty 0a32d46f59 use-warnings 2009-08-26 10:33:00 +05:30
Sitaram Chamarty dc4f32b14e backward compat for marker lines in authkeys 2009-08-26 07:05:04 +05:30
Sitaram Chamarty 09aeb31198 project renamed to gitolite 2009-08-26 06:54:43 +05:30
Sitaram Chamarty cb5a802d3e DAMN DAMN DAMN those lexical filehandles
print FH unless ()  # was working fine
but
    print $fh unless () # doesn't

instead of printing $_ to $fh, it prints $fh to STDOUT.  DAMN DAMN DAMN
2009-08-25 21:47:12 +05:30
Sitaram Chamarty 7a9bf9c296 conf-convert: quick and dirty hack, works fine :) 2009-08-25 20:17:04 +05:30
Sitaram Chamarty 33963391a5 INSTALL: pre-requisites, and lots of stuff on ssh
the duplicate pubkey problem and the need to document it was highlighted by
Ilari

...damn I spend more time on ssh than on git it seems to me :(
2009-08-25 20:15:49 +05:30
Sitaram Chamarty d1664e826f Merge branch 'jnareb-review' 2009-08-25 11:07:11 +05:30
Sitaram Chamarty 66bf4a20f9 all: lexical file handles instead of bare 2009-08-25 11:06:03 +05:30
Sitaram Chamarty 0b0d95a1ff auth: tighten up 2 regexes; one minor code clarity fix 2009-08-25 11:05:26 +05:30
Sitaram Chamarty ebf6300d01 all: some "our"s changed to "my" 2009-08-25 11:02:24 +05:30
Sitaram Chamarty 1f1b95f4c6 compile: move umask up to cover other outputs also 2009-08-25 07:06:36 +05:30
Sitaram Chamarty 92cf77d9c2 update hook: squelch message for branch deletion
Ilari pointed out that in case of branch deletion the *new* SHA could be 0,
which causes an ugly

    fatal: Not a valid commit name 0000000000000000000000000000000000000000

Since we consider deletion an extreme form of rewind, the end result does not
change ($merge_base will be unequal to $oldsha anyway), but we do need to
squelch the ugly message.
2009-08-25 06:38:05 +05:30
Sitaram Chamarty 0f726bea9a added license info 2009-08-24 20:30:26 +05:30
Sitaram Chamarty cd01bb5297 compile: fail/error checks:
- don't update authkeys if parse fails
    (done by moving that code so it runs *after* the parse)
  - check group/usernames for sanity
2009-08-24 17:40:44 +05:30
Sitaram Chamarty d33c408dc3 INSTALL and README pretty much done 2009-08-24 17:40:42 +05:30
Sitaram Chamarty 3cddc4ca35 compile/update-hook: preserve the order of refs
...by turning the last piece (list of allowed refs) into an array rather than a hash
2009-08-24 15:06:39 +05:30
Sitaram Chamarty 6feffc9b16 example.conf got lots more comments (aka documentation!) 2009-08-24 15:06:39 +05:30
Sitaram Chamarty 14f82ffc46 INSTALL started (w-i-p for now); minor changes to
README, TODO, and the rc file
2009-08-24 15:06:39 +05:30
Sitaram Chamarty e8e7bda41c added README and TODO 2009-08-24 15:06:39 +05:30
Sitaram Chamarty 2e38867b59 add hook, the last piece 2009-08-24 15:06:36 +05:30
Sitaram Chamarty 4a4b6e9d97 auth: finally! 2009-08-24 15:05:54 +05:30
Sitaram Chamarty 7d016908bd gl-compile-conf changed (see below) and "rc" file added
- factored out all the pathnames etc to an rc
  - taught it to create repos that dont exist but are mentioned
  - promoted user up one level (moving ref down) because gl-auth needs it
  - REPO_BASE no longer contains $HOME so that has to be added in manually

  - little bugs here and there, like in @refs
2009-08-24 15:05:47 +05:30
Sitaram Chamarty dc4193e633 gl-compile-conf now has "compilation" of the conf file also 2009-08-24 06:11:27 +05:30
Sitaram Chamarty 930fbafed7 example conf expanded a bit 2009-08-24 06:11:23 +05:30
Sitaram Chamarty d45a4e3972 added example.conf 2009-08-23 11:29:07 +05:30
Sitaram Chamarty 40dbada486 shell? perl? schizophrenia? fix it NOW dammit :) 2009-08-23 11:05:24 +05:30
Sitaram Chamarty 901a5f7220 gl-add-auth-keys; first version, pretty much done 2009-08-23 07:09:59 +05:30