Commit graph

707 commits

Author SHA1 Message Date
Sitaram Chamarty 3d44b003c8 clarifications in various messages etc
(thanks to SethX for feedback)

  - install: a little more verbosity in the mkdir
  - install and example conf: some of the help text made more clear
  - auth: error message on bad $cmd is now clearer, plus no perl-warnings to
    confuse people
2009-09-10 21:26:25 +05:30
Sitaram Chamarty 7abc629d51 faq-tips doc: "compile" as a separate step vindicated :-)
it seems gitosis silently ignores config errors.  It can't do anything else,
considering *when* the config file is parsed (on every access!)
2009-09-10 15:57:52 +05:30
Sitaram Chamarty 804c70f570 almost all src/conf: logging totally redone, upgrade doc added
- logs go into $GL_ADMINDIR/logs by default, named by year-month
  - logfile name template (including dir prefix) now in $GL_LOGT
  - two new env vars passed down: GL_TS and GL_LOG (timestamp, logfilename)
  - log messages timestamps more compact, fields tab-delimited
  - old and new SHAs cut to 14 characters
2009-09-06 18:07:38 +05:30
Sitaram Chamarty 455ebe1bc9 update hook: personal branches pattern, "-" becomes "/" 2009-09-02 06:49:04 +05:30
Sitaram Chamarty 4fa1ca6652 minor doc updates re directories etc 2009-09-01 20:33:24 +05:30
Sitaram Chamarty 401c2f46d7 install: update hooks in all repos on upgrade 2009-09-01 20:33:19 +05:30
Sitaram Chamarty 208c401858 compile: chmod internal, and save "old" authkeys 2009-09-01 19:40:42 +05:30
Sitaram Chamarty 5d4d5184b4 sources: 1-line all the "do"s for brevity and clarity
and yes, brevity and clarity "do" go together in perl :)
2009-09-01 19:36:00 +05:30
Sitaram Chamarty 62d89bf8f8 gl-auth: R_COMMANDS adds "git-upload-archive" 2009-08-31 21:08:21 +05:30
Sitaram Chamarty dd13de2d14 update hook/conf: $PERSONAL branch prefix
wicked cool to get it in one line of code!
2009-08-31 08:19:24 +05:30
Sitaram Chamarty abb4580d85 compile: wrap the open call as well,
plus better messages from both wrappers
2009-08-31 08:19:24 +05:30
Sitaram Chamarty 53f1a77f7f admin doc: clarify why authkeys is needed and what it does
I was very insistently told by a user that I should just create the file
if it does not exist, but this is as far as I am willing to go
2009-08-30 21:27:03 +05:30
Sitaram Chamarty 78a10a1ee1 compile: another solaris compat fix, to do with "~"
system("...") run from perl on sol does not seem to like "~" (regardless of
what $SHELL is set to), so use $ENV{HOME} instead

thanks again to evocallaghan
2009-08-30 21:22:44 +05:30
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