Re: Error pushing new branch: value too great for base (error token is...

2015-08-10 Thread Gaurav Chhabra
6:29 PM, Jacob Keller wrote: >> On Mon, Aug 10, 2015 at 2:54 AM, Gaurav Chhabra >> wrote: >>> Apologies for the delay in reply! I tried your suggestion and it >>> works. Thanks! :) >>> >>> I'm curious why integer comparison is throwing error.

Re: Error pushing new branch: value too great for base (error token is...

2015-08-10 Thread Gaurav Chhabra
Apologies for the delay in reply! I tried your suggestion and it works. Thanks! :) I'm curious why integer comparison is throwing error. Shouldn't i be comparing numbers with numeric operator? On Mon, Aug 10, 2015 at 3:23 PM, Gaurav Chhabra wrote: > Apologies for the delay in r

Error pushing new branch: value too great for base (error token is...

2015-08-05 Thread Gaurav Chhabra
I had written the following code to check whether a push is for branch deletion: #!/bin/bash NULL="" while read old_sha new_sha refname ; do echo "Stdin: [$old_sha] [$new_sha] [$refname]" if [[ "$new_sha" -eq "$NULL" ]]; then # Line 17 e

Re: Git tag: pre-receive hook issue

2015-07-20 Thread Gaurav Chhabra
x27;s a tag update. If it's not, you > can check it as a branch update. > > Then you should check all new commits for each branch, as Julio mentioned > above. > > Checking whether each commit has an associated tag is probably not > what you meant. > > Regards, > Ja

Re: Git tag: pre-receive hook issue

2015-07-19 Thread Gaurav Chhabra
wrote: > On Sun, Jul 19, 2015 at 12:55 AM, Gaurav Chhabra > <[hidden email]> wrote: >> @Junio: So from your detailed explanation (and Jake's comment), i >> understand that since my ref wasn't updated on remote so querying the >> same using "git describe&

Re: Git tag: pre-receive hook issue

2015-07-19 Thread Gaurav Chhabra
hen this check was put in place, devs were getting error while pushing annotated tags. Since we use Gitolite, we added the following to gitolite.conf and the tag push worked for them: RW+ refs/tags=developer_name I'm wondering why. On Sun, Jul 19, 2015 at 3:52 AM, Jacob Keller [via git] w

Re: Git tag: pre-receive hook issue

2015-07-18 Thread Gaurav Chhabra
Thanks for the comments Junio/Jacob! Actually, the script was written by someone before i came and the tag check was also done by my colleague recently. I was also trying to implement the tag check (using refs/tags which i did saw in few links online) but since my colleague implemented this 'git de

Re: Change default branch name (server side) while cloning a repository

2015-03-29 Thread Gaurav Chhabra
@Stefan: Thanks for letting me know the version you tried on. I have the following: Gitolite version: gitolite3 v3.04-13-gcc9727c-dt on git 1.7.1 Git server version: git version 1.7.1 Git client version: git version 1.9.4.msysgit.2 My Git server version lags quite behind compared to yours. :) Clo

Re: Identifying user who ran “git reset” command

2015-03-25 Thread Gaurav Chhabra
First of all, my sincere apologies for the inordinate delay in reply. The user who created the mess went on leave. By the time he was back, I got stuck in some other issue. Later, I took the log of 'history' command from his machine because i wanted to first simulate the scenario before i could app