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

2015-08-11 Thread Gaurav Chhabra
, Jacob Keller jacob.kel...@gmail.com wrote: On Mon, Aug 10, 2015 at 2:54 AM, Gaurav Chhabra varuag.chha...@gmail.com wrote: 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

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 varuag.chha...@gmail.com wrote: Apologies

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 echo

Re: Git tag: pre-receive hook issue

2015-07-20 Thread Gaurav Chhabra
, 2015 at 3:13 AM, Gaurav Chhabra [hidden email] wrote: The only thing we wanted to check was whether a ref is a tag. :) Rest other things are working fine (except for the commits=$new_sha1 thing which Junio already pointed out and corrected). I will correct the pre-receive hook. The only

Re: Git tag: pre-receive hook issue

2015-07-19 Thread Gaurav Chhabra
=developer_name I'm wondering why. On Sun, Jul 19, 2015 at 3:52 AM, Jacob Keller [via git] ml-node+s661346n7635854...@n2.nabble.com wrote: On Sat, Jul 18, 2015 at 1:08 PM, Gaurav Chhabra [hidden email] wrote: Thanks for the comments Junio/Jacob! Actually, the script was written by someone before i came

Re: Git tag: pre-receive hook issue

2015-07-19 Thread Gaurav Chhabra
.nabble.com 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 resulted in failure, and hence, code

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

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. :)

Re: Identifying user who ran “git reset” command

2015-03-26 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