[git-users] Re: Initialising a Git repo on a folder mounted via ObexFS

2010-07-16 Thread Camil
I found a workaround... I simply avoided having the .git folder inside
the mounted folder by using "git init" in the folder exactly above the
mountpoint, and added only the mountpoint to git. It's like this:

/home/camil/Projects/PDA_App
|
   +.git/
|
   +src/<-- this being the real mountpoint for the source
folder on the PDA

PDA_App was simply a blank folder, added to contain only the .git
folder and the mountpoint. Just tested it, and pushing&pulling work.

While it's not really a fix, it's a working solution.

Cheers!
Camil

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Initialising a Git repo on a folder mounted via ObexFS

2010-07-16 Thread Camil
Hello!

I have a setup that may be a little bit unusual. Here's the story:

A while ago, I began developing a small Python application, intended
to run on my Windows Mobile 5 PDA. I knew nothing about versioning
systems, nor about Git, so I was just developing the... well, "blind"
way. Everything went fine, I ended up with a working piece of
software, which I copied to my PDA and used it. Obviously, sometimes I
find bugs, or I want to add new features. After learning about VCSes
and became familiar with Git, I imagined I could create a repository
on the PDA as a "remote" repo, and have another one on the computer
(my laptop running Fedora 12). Then I could make changes on both
devices (yes, sometimes I edit the source right on the PDA, for quick
hacks or fixes) and sync them with pushes and pulls.

Now the real problem appeared when I tried to "git init" on the PDA.
Normally, I accessed the source folder on the PDA using ObexFS, which
mounts a folder via Bluetooth. I set it to mount that folder in /home/
camil/RSHPRX (the name of my PDA). But when I open a terminal there,
and run "git init", it stays idle for a while (Bluetooth is slow, of
course), then outputs the following:

[ca...@rshp RSHPRX]$ git init
error: could not lock config file /home/camil/RSHPRX/.git/config: File
exists
error: could not lock config file /home/camil/RSHPRX/.git/config: File
exists
error: could not lock config file /home/camil/RSHPRX/.git/config: File
exists
error: could not lock config file /home/camil/RSHPRX/.git/config: File
exists
Initialized empty Git repository in /home/camil/RSHPRX/.git/

The folder now indeed contains a .git folder that appears to be OK on
the inside. But when I try a "git status", I get this:

[ca...@rshp RSHPRX]$ git status
fatal: Not a git repository (or any of the parent directories): .git

I unmounted and remounted the folder, but no changes. The .git folder
is always there, but Git can't see it? When the PDA folder is mounted,
I become the owner of the files inside it, and they all have -rw-r--
r-- permissions (folders get drwxr-xr-x). It doesn't look like a
permission problem.

Does anyone have an idea?

Cheers!
Camil

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: git http clone error

2010-07-16 Thread Konstantin Khomoutov
Hey, guys, could you please stick to the widely-accepted and sensible
rules of "netiquette" and at least stop over-quoting let alone top-
posting (which sucks big time on its own)?!

Quoting 5k of text just to post one smiley and make all the list
subscribers see this is slightly over the top in my opinion.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Re: git http clone error

2010-07-16 Thread Peter
:)

On Fri, Jul 16, 2010 at 1:27 PM, sudharsan chandrababu
 wrote:
> I solved the problem myself by pushing to repo using git protocol ,by
> enabling git receive pack.
>
> On Jul 10, 1:20 pm, Peter  wrote:
>> For your situation, using Git:// protocol is fine.
>> But You can't clone from http:// priotocol.
>>
>> Could you use ie to verify your http://  (WebDav) setting?
>> Could you access it buy WebDav protocol, to read and write.
>>
>> If you Couldn't, Maybe there are other errors
>>
>> On Sat, Jul 10, 2010 at 1:13 PM, sudharsan chandrababu
>>
>>
>>
>>  wrote:
>> > Ya i am able to see the files and folders inside the repository using
>> > web interface ( i mean gitweb)
>> > Permission to the repo is 777. Run the cmd: git update-server-info,
>> > Still getting the same error, while cloning.
>> > Is there anything specially to be done for http accessing.
>> > When i googled it says the curl version must be 7.15 and above and i
>> > have the updated curl only. Kindly help.
>>
>> > On Jul 10, 9:03 am, Peter  wrote:
>> >>      May be You need check your folders' and files' permission.
>> >>       To see that did you http server permit to access all of your git 
>> >> files.
>>
>> >> On Fri, Jul 9, 2010 at 10:32 PM, sudharsan chandrababu
>>
>> >>  wrote:
>> >> > Hi Peter,
>>
>> >> > I really appreciate your immediate response.
>>
>> >> > I have already run the command git-update-server-info more than 10
>> >> > times in my server and also the hook script (post-update) is enabled.
>>
>> >> > what i notice is whenever i do a git clone the error (warning: remote
>> >> > HEAD refers to nonexistent ref, unable to checkout)
>> >> > comes out. I am able to see the folder which is cloned but without any
>> >> > contents.
>> >> > The .git inside the cloned folder where the /refs/heads/ there
>> >> > is nothing in it. Hence no contents in the cloned folder.
>>
>> >> > But when i do a clone using git://  i am able to see everything inside
>> >> > the cloned folder.
>>
>> >> > Kindly help as i am new to git.
>>
>> >> > Regards,
>> >> > Darshan
>>
>> >> > On Jul 9, 1:43 pm, Peter  wrote:
>> >> >> maybe you don't execute "git update-server-info " in server.
>>
>> >> >> You can try execute it.
>>
>> >> >> :)
>>
>> >> >> On Fri, Jul 9, 2010 at 4:14 PM, sudharsan chandrababu
>>
>> >> >>  wrote:
>> >> >> > HI all,
>>
>> >> >> > Could anyone resolve this problem. Whenever i try to git clone using
>> >> >> > http protocol  i am getting the following error:
>> >> >> > warning: remote HEAD refers to nonexistent ref, unable to checkout
>>
>> >> >> > I can view the contents of the repository  using gitweb and also the
>> >> >> > git daemon is working properly.
>>
>> >> >> > I dont know why i am not able to do a git clone via http, which is
>> >> >> > possible with git protocol.
>>
>> >> >> > Its really frustrating me now.
>>
>> >> >> > Thanks in Advance.
>>
>> >> >> > --
>> >> >> > You received this message because you are subscribed to the Google 
>> >> >> > Groups "Git for human beings" group.
>> >> >> > To post to this group, send email to git-us...@googlegroups.com.
>> >> >> > To unsubscribe from this group, send email to 
>> >> >> > git-users+unsubscr...@googlegroups.com.
>> >> >> > For more options, visit this group 
>> >> >> > athttp://groups.google.com/group/git-users?hl=en.-Hidequoted text -
>>
>> >> >> - Show quoted text -
>>
>> >> > --
>> >> > You received this message because you are subscribed to the Google 
>> >> > Groups "Git for human beings" group.
>> >> > To post to this group, send email to git-us...@googlegroups.com.
>> >> > To unsubscribe from this group, send email to 
>> >> > git-users+unsubscr...@googlegroups.com.
>> >> > For more options, visit this group 
>> >> > athttp://groups.google.com/group/git-users?hl=en.-Hide quoted text -
>>
>> >> - Show quoted text -
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups 
>> > "Git for human beings" group.
>> > To post to this group, send email to git-us...@googlegroups.com.
>> > To unsubscribe from this group, send email to 
>> > git-users+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/git-users?hl=en.- Hide quoted text -
>>
>> - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Git for human beings" group.
> To post to this group, send email to git-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/git-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.