Zachary T Welch [Tue, 27 Oct 2009 05:58:43 +0000 (26 22:58 -0700)]
watch: add 'watch' support
This patch provides front-end support for 'watch' feature:
watchadd.cgi: creates new project watchdogs for a user
watchedit.cgi: manage watchdogs of projects and users (view/edit/delete)
watchdel.cgi: deletes watchdogs for projects or users
In addition, two scripts provide the means to 'contact' watchers:
watchspam.cgi: contact a set of watchers for a project
watchabuse.cgi: report abuse of the contact system (auto-blacklister)
The README was updated to describe the storage format and locations of
the watchdog files, as implemented by the Git::RepoCGI::Watch module.
The config.pl module has also been updated to provide the default
watchdog path setting when (re)run with '-u'.
Zachary T Welch [Wed, 28 Oct 2009 05:29:49 +0000 (27 22:29 -0700)]
README: catch up with reality
Zachary T Welch [Wed, 28 Oct 2009 00:44:30 +0000 (27 17:44 -0700)]
*.cgi: replace site-specific constansts
Two locations accessed the filesystem directly, so they got helpers.
Likewise, the site name became an accessor(y) for the $repo object,
so the scripts should generate the proper information on new sites.
Zachary T Welch [Wed, 28 Oct 2009 02:48:44 +0000 (27 19:48 -0700)]
apache.conf: generate using config.pl
Zachary T Welch [Tue, 27 Oct 2009 23:21:26 +0000 (27 16:21 -0700)]
gitweb_config: configure gitweb_config.perl
Use config.pl to configure constants in gitweb_config.perl.
Zachary T Welch [Wed, 28 Oct 2009 01:59:11 +0000 (27 18:59 -0700)]
RepoCGI: move site params to Git::RepoCGI::Config
Add Git::RepoCGI::Config module that can be used with config.pl,
rather than hard-coding the site parameters.
Zachary T Welch [Tue, 27 Oct 2009 23:11:12 +0000 (27 16:11 -0700)]
*.sh: remove hard-coded bits with config.pl
Add a Makefile that calls a new config.pl script to filter the various
project files and embed the current configuration information.
If called with the '-u' flag, it generates a fresh config.txt file,
which provides the configuration information for subsequent runs.
This makes the shell scripts scripts portable to more systems, and
the next few patches address the hard-coded bits in other files.
Add a .gitignore file to prevent accidentally commiting the
files that are now generated by the config.pl script.
Zachary T Welch [Tue, 27 Oct 2009 03:52:58 +0000 (26 20:52 -0700)]
TODO: embrace and extend
Zachary T Welch [Sun, 25 Oct 2009 23:04:09 +0000 (25 16:04 -0700)]
about.html: improve site description
Clarify hosted project mode options:
- Rename 'push mode' as 'depot mode'.
- Identify the 'fork mode' and explain its advantages.
- Introduce modes in order new users will experience them.
- Provide additional links into regproj.cgi script which aim to
simplify the process for new users.
Zachary T Welch [Mon, 26 Oct 2009 12:00:47 +0000 (26 05:00 -0700)]
delproj: simplify code and messages
Uses the load_project and bye methods to simplify validity checks.
Improves the wording of the error messages and page content.
Zachary T Welch [Mon, 26 Oct 2009 00:40:23 +0000 (25 17:40 -0700)]
regproj: improve registration page
- Present information with more structure, in logical order.
- Inform user how we use the password and contact e-mail information
- Update 'push mode' terminology to 'depot mode'.
- Add example links to this repository (or fork origin) in docs.
- Wrap lines to fit 80 column terminals
Zachary T Welch [Mon, 26 Oct 2009 00:19:57 +0000 (25 17:19 -0700)]
regproj: support 'fork' mode
New 'fork' mode support prompts for an origin repository, unless one was
provided (e.g. by project 'fork' links). It ensures the supplied or
inferred origin name is valid and that the project exists to be forked.
If the origin cannot be deduced, a simple form prompts for it, and the
user is returned to the page in fork mode with their input. Thus, other
pages can use this as the target for generic 'create fork' links.
Zachary T Welch [Sun, 25 Oct 2009 17:51:54 +0000 (25 10:51 -0700)]
regproj: improve push creation success output
Zachary T Welch [Sun, 25 Oct 2009 17:07:57 +0000 (25 10:07 -0700)]
regproj: improve captcha display and handling
Allow the registration captcha question and answer to be updated
more easily.
Zachary T Welch [Sun, 25 Oct 2009 16:35:25 +0000 (25 09:35 -0700)]
regproj: enforce fork origin path
Adds initial support for 'origin' parameter, deriving a value from the
'name' parameter passed by project 'fork' links (if not passed
directly).
If origin is defined, then the project mode radio buttens are hidden,
and the value is forced to push mode, as it does not make any sense to
allowing forking read-only mirrors for local upsream repositorys.
This simple change ensures stupid users cannot accidentally change the
origin after clicking on a 'fork' link. For context, I can call users
stupid here, because I was the idiot that discovered this missing check.
I meant to create a fork called 'foo/bar' and got one called 'foo-bar'.
The change prevents other users from making this mistake in the future.
The origin should display in bold text immediately preceding the 'name'
text input box, without a leading '/' to help remind the user of the
new fork's relative path. When not provided, the '/' shows the fact
that the repositories create a new virtual root for future forks.
Zachary T Welch [Sun, 25 Oct 2009 16:06:22 +0000 (25 09:06 -0700)]
regproj: strip off .git from projects names.
This allows the web interface to be more forgiving with this input.
Zachary T Welch [Tue, 27 Oct 2009 07:12:34 +0000 (27 00:12 -0700)]
editproj: improve mirror and password handling
Remove out-of-place and pedantic introduction to page.
Add headers to outline the various section of the page.
Consolidate handling of mirror projects in one new section.
Move password fields to the end; these are least or last used.
Generally clean up the form portion of the page.
Zachary T Welch [Tue, 27 Oct 2009 06:55:53 +0000 (26 23:55 -0700)]
editproj: improve user list
Zachary T Welch [Mon, 26 Oct 2009 07:37:05 +0000 (26 00:37 -0700)]
editproj: improve error reporting
Uses load_project helper, splits up submitted form checks,
reports form success in bold to make it more readily visible.
Zachary T Welch [Tue, 27 Oct 2009 22:03:12 +0000 (27 15:03 -0700)]
edituser: intial improvements
Zachary T Welch [Tue, 27 Oct 2009 18:05:45 +0000 (27 11:05 -0700)]
reguser: improve page content
Zachary T Welch [Tue, 27 Oct 2009 18:29:59 +0000 (27 11:29 -0700)]
pwuser: adds means of resetting user password
Zachary T Welch [Tue, 27 Oct 2009 12:45:20 +0000 (27 05:45 -0700)]
pwproj: refine project password reset process
Use new load_project and bye to simplify error checking paths.
Moves genpwd into Git::RepoCGI module for re-use.
Improve verbiage used on site and in the e-mail.
Zachary T Welch [Mon, 26 Oct 2009 06:00:03 +0000 (25 23:00 -0700)]
*.cgi: eliminate exposure of $cgi object
Eliminates direct exposure of the $cgi variable in scripts by using
the RepoCGI->sparam method. The RepoCGI module now encapsulates all
access to that object.
Zachary T Welch [Tue, 27 Oct 2009 19:04:00 +0000 (27 12:04 -0700)]
RepoCGI: add support for user passwords
Uses the second field of the passwd file, which was previously unused.
This back-end support needs a CGI front-end, which appears separately.
Zachary T Welch [Mon, 26 Oct 2009 06:58:53 +0000 (25 23:58 -0700)]
RepoCGI: isolate site-specific constants
Creates a block of variables to hold all site-specific parameters.
Simplifies code in ghost constructor, but no functional changes.
Zachary T Welch [Mon, 26 Oct 2009 04:29:36 +0000 (25 21:29 -0700)]
RepoCGI: add improved helpers
- The wparam method issued warnings when retrieving undefined
parameters. The new sparam method returns an empty string instead,
which will help simplify the cgi scripts noticably.
- Add 'bye' method that prints and exits. This is suitable for use by
the cgi scripts to print an error and exit. The arguments are wrapped
with a <p>aragra</p>h and newline.
- Add load_project method to encapsulate common CGI checks.
- Add load_user method for similar reasons.
Petr Baudis [Sun, 24 May 2009 16:40:56 +0000 (24 18:40 +0200)]
regproj: warn against push --mirror on forks
Petr Baudis [Sun, 24 May 2009 16:37:42 +0000 (24 18:37 +0200)]
regproj: Change anti-captcha to nearest planet test
Petr Baudis [Sun, 24 May 2009 16:36:59 +0000 (24 18:36 +0200)]
gitweb_config: snapshot feature spec
Petr Baudis [Sun, 24 May 2009 16:36:28 +0000 (24 18:36 +0200)]
change repack incatation
Petr Baudis [Sun, 24 May 2009 16:35:47 +0000 (24 18:35 +0200)]
turn off glibc mirror, proj4 mirror inst.
Petr Baudis [Sun, 24 May 2009 16:34:42 +0000 (24 18:34 +0200)]
edituser.cgi: Fix user existence test
Petr Baudis [Tue, 14 Oct 2008 14:44:12 +0000 (14 16:44 +0200)]
Revert "indextext.html: Link to the Git User's Survey 2008"
This reverts commit
8b581c9964035b3d0248651bd098f40c4ba19105.
Petr Baudis [Tue, 2 Sep 2008 11:04:11 +0000 (2 13:04 +0200)]
cgi/Git/RepoCGI: Fix grammar error in ssh key format check
Reported by David Mudrak.
Petr Baudis [Sun, 31 Aug 2008 23:03:22 +0000 (1 01:03 +0200)]
indextext.html: Link to the Git User's Survey 2008
Petr Baudis [Sun, 31 Aug 2008 23:03:10 +0000 (1 01:03 +0200)]
clone.sh: Create the ctags/ subdirectory properly
Petr Baudis [Sat, 12 Jul 2008 22:17:19 +0000 (13 00:17 +0200)]
indextext.html: Link to [GitHosting] (induced by Savannah mail)
Petr Baudis [Sat, 12 Jul 2008 22:16:56 +0000 (13 00:16 +0200)]
indextext.html: Improve the clone instructions
Petr Baudis [Sat, 12 Jul 2008 22:13:43 +0000 (13 00:13 +0200)]
about.html: Novell still _is_ sponsoring the development
Petr Baudis [Sat, 12 Jul 2008 22:13:27 +0000 (13 00:13 +0200)]
cgi/tagproj.cgi: Permit # in tags ('C#')
Petr Baudis [Thu, 10 Jul 2008 16:35:53 +0000 (10 18:35 +0200)]
about.html: Weed out competition ;-)
The list is too long by now and somewhat covered by git.or.cz
Petr Baudis [Thu, 10 Jul 2008 16:35:26 +0000 (10 18:35 +0200)]
about.html: Link to git/repo.git too
Petr Baudis [Thu, 10 Jul 2008 16:34:44 +0000 (10 18:34 +0200)]
about.html: Update hw info (we got new hardware some time ago)
Petr Baudis [Thu, 10 Jul 2008 16:24:10 +0000 (10 18:24 +0200)]
cgi/tagproj.cgi: Treat spaces as tag separators
Petr Baudis [Thu, 10 Jul 2008 13:59:26 +0000 (10 15:59 +0200)]
gitweb: Lower projlist cache lifetime from 30 to 10
Petr Baudis [Thu, 10 Jul 2008 09:19:15 +0000 (10 11:19 +0200)]
Add support for content tagging
Petr Baudis [Wed, 9 Jul 2008 12:45:07 +0000 (9 14:45 +0200)]
inactive: Remove projects from /etc/group, ignore fork bases
Petr Baudis [Wed, 18 Jun 2008 14:17:25 +0000 (18 16:17 +0200)]
update.sh: Send only single failure/recovery mails
instead of repeated failure notifications.
Petr Baudis [Tue, 3 Jun 2008 00:47:00 +0000 (3 02:47 +0200)]
keys_fill: Add a SSH key sanity check
Petr Baudis [Tue, 3 Jun 2008 00:46:42 +0000 (3 02:46 +0200)]
edituser.cgi: SSH authcore expires in 24 hours, not 1 hour
Jan Krueger [Wed, 14 May 2008 13:45:11 +0000 (14 15:45 +0200)]
Add SSH key changing interface.
Add SSH key changing interface.
Motivated by the recent OpenSSL vulnerability in Debian, add a user-accessible
feature to change public SSH keys associated with an account. Authentication
happens by sending the user an authorization code by e-mail (which is stored
on the server side as a special comment in the user's sshkey file).
Signed-off-by: Jan Krueger <jk@jk.gs>
Petr Baudis [Tue, 3 Jun 2008 00:34:52 +0000 (3 02:34 +0200)]
clone.sh: Fix alternates setup
Petr Baudis [Tue, 3 Jun 2008 00:34:36 +0000 (3 02:34 +0200)]
about.html: Typo fix
Petr Baudis [Tue, 3 Jun 2008 00:34:24 +0000 (3 02:34 +0200)]
about.html: Better UPC sponsorship link
Petr Baudis [Tue, 22 Apr 2008 01:32:25 +0000 (22 03:32 +0200)]
Fix missing /objects for alternates files
Petr Baudis [Tue, 22 Apr 2008 01:32:05 +0000 (22 03:32 +0200)]
Commented-out debug prints
Petr Baudis [Fri, 14 Mar 2008 00:50:28 +0000 (14 01:50 +0100)]
$projlist_cache_lifetime = 30
Petr Baudis [Fri, 14 Mar 2008 00:50:13 +0000 (14 01:50 +0100)]
inactive: Cleanup
Petr Baudis [Mon, 18 Feb 2008 17:29:43 +0000 (18 18:29 +0100)]
delproj: Fix password check
Petr Baudis [Sun, 27 Jan 2008 19:48:37 +0000 (27 20:48 +0100)]
Do not /objects in alternates
Petr Baudis [Wed, 7 Nov 2007 13:56:06 +0000 (7 14:56 +0100)]
Elaborate chroot content
Petr Baudis [Thu, 18 Oct 2007 12:47:07 +0000 (18 14:47 +0200)]
Remove the survey link
Johannes Schindelin [Mon, 15 Oct 2007 20:35:31 +0000 (15 21:35 +0100)]
updatecheck: fix pruning objects needed by forked projects
Repack in reverse order, so that forked repositories get repacked first.
That prevents objects from missing, since repack -l will automagically
put the now-going-away objects into the forked repository's object store.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Petr Baudis [Mon, 3 Sep 2007 01:41:52 +0000 (3 03:41 +0200)]
CGI: Anti-captcha hidden fields
This should keep most of the bots hopefully out.
Petr Baudis [Wed, 29 Aug 2007 11:20:00 +0000 (29 13:20 +0200)]
Git::RepoCGI: Make errors really red
Petr Baudis [Wed, 29 Aug 2007 01:39:22 +0000 (29 03:39 +0200)]
cgi/regproj.cgi: Fix missing name in editproj link
Petr Baudis [Sun, 26 Aug 2007 21:35:54 +0000 (26 23:35 +0200)]
pwproj: Fix pipeline direction
Petr Baudis [Sun, 26 Aug 2007 21:34:25 +0000 (26 23:34 +0200)]
pwproj: .pgi -> .cgi
Petr Baudis [Sun, 26 Aug 2007 21:32:20 +0000 (26 23:32 +0200)]
Add pwproj.cgi for resetting forgotten password
Petr Baudis [Sun, 26 Aug 2007 21:29:58 +0000 (26 23:29 +0200)]
inactive: Slightly improve the message
Petr Baudis [Sun, 26 Aug 2007 21:22:39 +0000 (26 23:22 +0200)]
clone.sh: Improved the mail message
Petr Baudis [Sun, 26 Aug 2007 18:51:49 +0000 (26 20:51 +0200)]
Fix URLs of editproj.cgi.
Petr Baudis [Sun, 26 Aug 2007 18:41:42 +0000 (26 20:41 +0200)]
Merge with git+ssh://repo.or.cz/srv/git/repo.git
Petr Baudis [Sun, 26 Aug 2007 18:41:31 +0000 (26 20:41 +0200)]
Syntax error fix
Petr Baudis [Sun, 26 Aug 2007 18:25:52 +0000 (26 20:25 +0200)]
README: Some status updates
Petr Baudis [Sun, 26 Aug 2007 11:56:06 +0000 (26 13:56 +0200)]
Double password entering in editproj as well
Petr Baudis [Sun, 26 Aug 2007 11:51:26 +0000 (26 13:51 +0200)]
Fix setting cpwd property
Petr Baudis [Sun, 26 Aug 2007 11:48:28 +0000 (26 13:48 +0200)]
Fix README field pre-filled only by the first line
Discovered by Michael Smith.
Petr Baudis [Sun, 26 Aug 2007 11:45:14 +0000 (26 13:45 +0200)]
Fix name passing
Petr Baudis [Sun, 26 Aug 2007 11:35:50 +0000 (26 13:35 +0200)]
Git::RepoCGI: Fix a warning
Petr Baudis [Sun, 26 Aug 2007 11:34:46 +0000 (26 13:34 +0200)]
regproj: Fix password comparison
Petr Baudis [Sun, 26 Aug 2007 11:31:36 +0000 (26 13:31 +0200)]
gitweb_config: Include $gitwebjs
Petr Baudis [Sun, 26 Aug 2007 11:31:01 +0000 (26 13:31 +0200)]
Get rid of httpauth
Instead, you now have to enter the admin password on the pages
themselves. They require proejct name as CGI argument.
Petr Baudis [Sat, 25 Aug 2007 23:22:38 +0000 (26 01:22 +0200)]
Create http-alternates for grandparent forkees as well
Petr Baudis [Sat, 25 Aug 2007 23:15:21 +0000 (26 01:15 +0200)]
http-alternates, not http_alternates
Petr Baudis [Sat, 25 Aug 2007 23:08:28 +0000 (26 01:08 +0200)]
Create separate http_alternates
Petr Baudis [Sat, 25 Aug 2007 23:08:18 +0000 (26 01:08 +0200)]
Clean up user-visible texts
Petr Baudis [Sat, 25 Aug 2007 22:34:27 +0000 (26 00:34 +0200)]
clone.sh: Remove useless sed
Petr Baudis [Tue, 21 Aug 2007 08:42:48 +0000 (21 10:42 +0200)]
Use git instead of cg in command examples
Petr Baudis [Tue, 21 Aug 2007 08:36:27 +0000 (21 10:36 +0200)]
Add link to the Git User Survey
Petr Baudis [Tue, 7 Aug 2007 00:52:25 +0000 (7 02:52 +0200)]
Make alternates paths absolute instead of relative
Git cannot handle multi-level relative paths. Discovered by Johannes
Schindelin.
Petr Baudis [Mon, 18 Jun 2007 13:30:25 +0000 (18 15:30 +0200)]
clone.sh: add -f to rm -r cloning stage, can be empty
Petr Baudis [Thu, 14 Jun 2007 18:24:06 +0000 (14 20:24 +0200)]
delproj.cgi: Fix forks check
Petr Baudis [Thu, 14 Jun 2007 18:23:54 +0000 (14 20:23 +0200)]
CGI: Make project names gitweb links
Petr Baudis [Thu, 24 May 2007 15:59:31 +0000 (24 17:59 +0200)]
Set up custom PATH to use reasonably fresh git version
Petr Baudis [Sat, 19 May 2007 20:25:31 +0000 (19 22:25 +0200)]
Set receive.denyNonFastforwards to false when creating new projects
Petr Baudis [Fri, 18 May 2007 11:17:59 +0000 (18 13:17 +0200)]
Add $blamejs for the incremental blame view
Petr Baudis [Mon, 7 May 2007 11:57:13 +0000 (7 13:57 +0200)]
Merge with git+ssh://repo.or.cz/srv/git/repo.git
Petr Baudis [Mon, 7 May 2007 11:43:37 +0000 (7 13:43 +0200)]
Fix date usage