Re: gitweb is no longer a real-time view

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>, Stephen Frost <sfrost(at)snowman(dot)net>
Subject: Re: gitweb is no longer a real-time view
Date: 2013-03-04 13:52:42
Message-ID: 1362405162.66623.YahooMailNeo@web162904.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

Magnus Hagander <magnus(at)hagander(dot)net> wrote:

> Question still remains how then.
>
> Normally it should, AFAIK, refuse to do such a push without a --force.
> But admittedly, I don't know for sure exactly how those more complex
> setups work.
>
> Do you by any chance have any other git settings either in your local
> or in the repository config?
>
> Also, can someone who knows how that stuff is set up, explain why it's
> pushing anonymous/master in this case? Seems like it should just push
> the actual branch, no? Are those instructions for usage wrong?
>
>
>> kgrittn(at)Kevin-Desktop:~/pg/postgresql.git$ git remote --verbose
>> origin  ssh://git(at)gitmaster(dot)postgresql(dot)org/postgresql.git (fetch)
>> origin  ssh://git(at)gitmaster(dot)postgresql(dot)org/postgresql.git (push)
>> kgrittn(at)Kevin-Desktop:~/pg/postgresql.git$ cd ../master
>> kgrittn(at)Kevin-Desktop:~/pg/master$ pull
>> remote: Counting objects: 31, done.
>> remote: Compressing objects: 100% (16/16), done.
>> remote: Total 16 (delta 15), reused 0 (delta 0)
>> Unpacking objects: 100% (16/16), done.
>> From /home/kgrittn/pg/postgresql
>>   + 3a21ef1...b15a6da master    -> origin/master  (forced update)
>
> ^^ there's another forced update. Which seems to indicate that your
> git is doing forced updates by default in both directions.
>
> I have no idea how it would do that by default - I've always received
> an error when accidentally doing something like that...

Are there any files to look at besides these?:

kgrittn(at)Kevin-Desktop:~/pg/master$ cat ~/.gitconfig
[user]
        name = Kevin Grittner
        email = kgrittn(at)postgresql(dot)org
[core]
        excludesfile = /home/kgrittn/.gitexcludesfile
        pager = less -x4
    editor = vim
kgrittn(at)Kevin-Desktop:~/pg/master$ cat .git/config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        fetch = +refs/heads/master:refs/remotes/origin/master
        url = /home/kgrittn/pg/postgresql
[branch "master"]
        remote = origin
        merge = refs/heads/master
        rebase = true
[remote "github"]
        url = git(at)github(dot)com:kgrittn/postgres.git
        fetch = +refs/heads/*:refs/remotes/github/*
kgrittn(at)Kevin-Desktop:~/pg/master$ cat ../postgresql.git/config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = true
[remote "origin"]
        fetch = +refs/*:refs/*
        mirror = true
        url = ssh://git(at)gitmaster(dot)postgresql(dot)org/postgresql.git

The rebase option was something I did because the Wiki instructions
told me to:

http://wiki.postgresql.org/wiki/Committing_with_Git#Dependent_Clone_per_Branch.2C_Pushing_and_Pulling_From_a_Local_Repository
 
I don't think there is anything there which wasn't done per
instructions, but maybe the Wiki needs a fix?

--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Magnus Hagander 2013-03-04 13:56:02 Re: gitweb is no longer a real-time view
Previous Message Andres Freund 2013-03-04 13:27:00 Re: gitweb is no longer a real-time view