Re: Help creating git alias

2013-10-31 Thread Eugene Sajine
On Thu, Oct 31, 2013 at 3:41 PM, Junio C Hamano wrote: > Eugene Sajine writes: > >> One note: i tried the ${GIT_PREFIX:-.} and ${GIT_PREFIX} and it seems >> to give the same results. What is the expected difference here? > > GIT_PREFIX may be an empty string when yo

Re: Help creating git alias

2013-10-31 Thread Eugene Sajine
On Thu, Oct 31, 2013 at 2:15 PM, David Aguilar wrote: > On Thu, Oct 31, 2013 at 11:07:19AM -0700, Junio C Hamano wrote: >> David Aguilar writes: >> >> > A-ha.. I think adding the chdir to alias is possible using a function. >> >> You do not have to use a function to do so, no? > > Right, of cours

Re: Help creating git alias

2013-10-31 Thread Eugene Sajine
On Wed, Oct 30, 2013 at 11:54 PM, Junio C Hamano wrote: > Eugene Sajine writes: > >> That was my initial intention, because I would like to be able to pass >> parameters like to git log or git blame correctly without the explicit >> use of $1. Could you please advise a

Re: Help creating git alias

2013-10-30 Thread Eugene Sajine
On Wed, Oct 30, 2013 at 5:02 PM, Junio C Hamano wrote: > Eugene Sajine writes: > >> On Wed, Oct 30, 2013 at 3:57 PM, Ralf Thielow wrote: >>> lg=!git log --pretty=format:'%h %ad %ae %s' --date=short | sed 's/@\\S*//g' >>> >>> should wo

Re: Help creating git alias

2013-10-30 Thread Eugene Sajine
On Wed, Oct 30, 2013 at 3:57 PM, Ralf Thielow wrote: > lg=!git log --pretty=format:'%h %ad %ae %s' --date=short | sed 's/@\\S*//g' > > should work. It did! thanks! I didn't know that "!sh -c" is not needed > > On Wed, Oct 30, 2013 at 8:34

Re: Help creating git alias

2013-10-30 Thread Eugene Sajine
nderstanding \S* as regexp so it removes only "@", while i need to remove from @ to the next whitespace Thanks, Eugene > > On 30 October 2013 12:34, Eugene Sajine wrote: >> Hi, >> >> I need some advice about creating the git command alias: >> >>

Help creating git alias

2013-10-30 Thread Eugene Sajine
Hi, I need some advice about creating the git command alias: I have this as the command: git log --pretty=format:"%h %ad %ae %s" --date=short | sed 's/@\S*//g' The purpose is to cut off the email domain and keep only username. I'm trying to create this as the alias: lg = !sh -c 'git log --p

Re: Fwd: Fwd: git-daemon access-hook race condition

2013-09-13 Thread Eugene Sajine
> > For now I'm trying to do the following: > > access-hook.bash has: > > delayed-notify.bash $@ & > > delayed-notify.bash has: > > sleep 10 > ... > curl ... > > I'm expecting access-hook to spawn new process and return without > waiting for it to finish to let the service to do its job. But when i

Re: Fwd: Fwd: git-daemon access-hook race condition

2013-09-12 Thread Eugene Sajine
On Thu, Sep 12, 2013 at 6:20 PM, Junio C Hamano wrote: > Junio C Hamano writes: > >> Eugene Sajine writes: >> >>> So are you really sure that it is a non-starter to have >>> --before-service/--after-service options for access-hook? >> >> Give

Re: Fwd: Fwd: git-daemon access-hook race condition

2013-09-12 Thread Eugene Sajine
On Thu, Sep 12, 2013 at 5:16 PM, Eugene Sajine wrote: > Junio, > > Thanks for the clarification! Your solution does look better. > > For now though i think i will have to delay the notification somehow > and let the service finish first then notify the server. > >

Re: Fwd: Fwd: git-daemon access-hook race condition

2013-09-12 Thread Eugene Sajine
Junio, Thanks for the clarification! Your solution does look better. For now though i think i will have to delay the notification somehow and let the service finish first then notify the server. Thanks again! Eugene On Thu, Sep 12, 2013 at 5:08 PM, Junio C Hamano wrote: > Eugene Saj

Fwd: Fwd: git-daemon access-hook race condition

2013-09-12 Thread Eugene Sajine
On Thu, Sep 12, 2013 at 3:15 PM, Junio C Hamano wrote: > Eugene Sajine writes: > >> Is it possible to have access-hook to be executed after receive? > > The whole point of access-hook is to allow it to decide whether the > access is allowed or not, so that is a non-starte

Fwd: git-daemon access-hook race condition

2013-09-12 Thread Eugene Sajine
Hi, We are serving repos in closed netwrok via git protocol. We are using git-daemon access hook (thank you very much for such a great feature) in order to create push notifications for Jenkins. I.e. upon the push the access-hook is called and then the curl command is created and executed. As we

Re: git daemon --access-hook problem

2013-06-03 Thread Eugene Sajine
wrote: > On Mon, Jun 3, 2013 at 8:02 PM, Eugene Sajine wrote: >> Would you be able to advise how this should be done? >> I don't get the error message (i mean the output of pwd) if i do this: >> >> echo `pwd` >> exit 1 >> >> What should it be? > &

Re: git daemon --access-hook problem

2013-06-03 Thread Eugene Sajine
> - Your log file might not be located where you expect, you should use > absolute path to dump text You were right! The problem was with the script itself - the log file not being specified with absolute path! Stupid me! ... > - The documentation says you can print one line before a failure, als

Re: git daemon --access-hook problem

2013-06-02 Thread Eugene Sajine
Anybody? Any ideas? Thanks in advance! Eugene On Fri, May 31, 2013 at 4:22 PM, Eugene Sajine wrote: > Hi, > > I'm trying to test this new feature and having problems getting any > results in the following scenario: > > i have a repo in local folder > > /home/use

git daemon --access-hook problem

2013-05-31 Thread Eugene Sajine
Hi, I'm trying to test this new feature and having problems getting any results in the following scenario: i have a repo in local folder /home/users/myuser/repos/projectA/.git i start the daemon with the following: git daemon --export-all --base-path=/home/users/myuser/repos --enable=receive-p

Fwd: Fwd: git cvsimport implications

2013-05-17 Thread Eugene Sajine
MIchael, sorry for dup - didn't press reply all for the first one. > > So what are you going to do, use cvsimport whenever you cannot *prove* > that it is wrong? You sure have low standards for your software. 1. You are making assumptions and conclusions that have no grounds. I asked for help un

Re: Fwd: git cvsimport implications

2013-05-15 Thread Eugene Sajine
wrote: > On 05/15/2013 12:19 AM, Junio C Hamano wrote: >> Eugene Sajine writes: >> >>> What if there are a lot of branches in the CVS repo? Is it guaranteed >>> to be broken after import? >> >> Even though CVS repository can record branches in individual ,

Fwd: git cvsimport implications

2013-05-14 Thread Eugene Sajine
Hi, We are using git cvsimport heavily but mostly the projects are not using branches that much. We are also migrating our repos only once, so there is no commits to CVS repo and no incremental imports allowed after the migration. we have migrated more than a thousand projects already. we use th

Re: Android Replies to Git List getting rejected

2012-08-07 Thread Eugene Sajine
On Tue, Aug 7, 2012 at 4:55 PM, Theodore Ts'o wrote: > On Tue, Aug 07, 2012 at 01:33:23PM -0600, John 'Warthog9' Hawley wrote: >> It's pretty simple: you sent HTML mail to vger.kernel.org, and it >> explicitly rejects all HTML e-mail. GMail, particularly from Android, >> apparently doesn't have a

Re: need help with syncing two bare repos

2012-08-03 Thread Eugene Sajine
On Fri, Aug 3, 2012 at 4:00 PM, Junio C Hamano wrote: > Eugene Sajine writes: > >> I think the best variant would be to do something like: >> >> $ git pull --rebase /refs/heads/*:/refs/heads/* >> $ git push origin /refs/heads/*:/refs/heads/* > > You perhaps

Egit is not included into eclipse bundles

2012-07-20 Thread Eugene Sajine
Hi, I have a strong impression that Egit was supposed to be included into the default eclipse distribution starting from Eclipse Helios. May be it was my wild dream that I would like to become true, but I would appreciate any info about why I still can't see it in Juno? Thanks, Eugene -- To unsub