Package: git-core
Version: 1:1.5.6.5-2
Severity: important

I'd like to have a bare repository on an ipod (hfsplus formatted) for back-up 
purposes.
After creation of repository, cloning (on a different machine to avoid eventual 
hardlinks problems)
and pushing, git-fsck says everything is fine, but after mount and remount 
git-fsck fails.
As described below

**Checking for sanity:

[gar...@is010076:tmp.git]$ pwd
/mnt/ipod/backup/tmp.git
[gar...@is010076:tmp.git]$ git-fsck
[gar...@is010076:tmp.git]$ 

**Cloning (different machine):

[gar...@is003318:~]$ git-clone 
ssh://gar...@is010076.intra.cea.fr//mnt/ipod/backup/tmp.git tmp_clone
Initialized empty Git repository in /home/garcia/tmp_clone/.git/
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 3 (delta 0)
Receiving objects: 100% (3/3), done.

**Commiting some modifications:

[gar...@is003318:tmp_clone]$ git-status 
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#
#       modified:   test.txt
#
no changes added to commit (use "git add" and/or "git commit -a")
[gar...@is003318:tmp_clone]$ git-commit -a
Created commit ee2036e: Some modifications on test.txt
 1 files changed, 1 insertions(+), 1 deletions(-)

**Pushing last commit:

[gar...@is003318:tmp_clone]$ git-push 
Counting objects: 5, done.
Writing objects: 100% (3/3), 293 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To ssh://gar...@is010076.intra.cea.fr//mnt/ipod/backup/tmp.git
   e80b477..ee2036e  master -> master

** checking for sanity:
[gar...@is010076:tmp.git]$ git-fsck
[gar...@is010076:tmp.git]$ 

** unmounting and re-mounting

[gar...@is010076:~]$ umount /mnt/ipod 
[gar...@is010076:~]$ mount /mnt/ipod/
[gar...@is010076:~]$ mount
/dev/sda6 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda2 on /mnt/sda2 type ext2 (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/sdb3 on /mnt/ipod type hfsplus (rw)

** checking for sanity

[gar...@is010076:tmp.git]$ git-fsck
error: 01ab9a93b7f60c2e16d3fddc4243300dc706570c: object corrupt or missing
error: 3a1b31b98fb985b5064698e9bb6268a3c9eaefd2: object corrupt or missing
error: ee2036efe00f319734ba6d0b3ad3d8bb47e3f91a: object corrupt or missing
error: refs/heads/master: invalid sha1 pointer 
ee2036efe00f319734ba6d0b3ad3d8bb47e3f91a
notice: No default references

After inspecting files on bare repository, it seems that there is a problem 
with hardlinks,
excerpt of "ls -lR" output before unmount (notice the zero for objects 
hardlinks)

./objects:
total 0
drwxr-xr-x 1 garcia garcia 3 jan 26 09:58 01
drwxr-xr-x 1 garcia garcia 3 jan 26 09:58 3a
drwxr-xr-x 1 garcia garcia 3 jan 26 09:58 ee
drwxr-xr-x 1 garcia garcia 3 jan 23 18:36 info
drwxr-xr-x 1 garcia garcia 4 jan 23 18:36 pack

./objects/01:
total 4
-r--r--r-- 0 garcia garcia 46 jan 26 09:58 
ab9a93b7f60c2e16d3fddc4243300dc706570c

./objects/3a:
total 4
-r--r--r-- 0 garcia garcia 53 jan 26 09:58 
1b31b98fb985b5064698e9bb6268a3c9eaefd2

./objects/ee:
total 4
-r--r--r-- 0 garcia garcia 180 jan 26 09:58 
2036efe00f319734ba6d0b3ad3d8bb47e3f91a

Thanks

Juan

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages git-core depends on:
ii  libc6                  2.7-18            GNU C Library: Shared libraries
ii  libcurl3-gnutls        7.18.2-8          Multi-protocol file transfer libra
ii  libdigest-sha1-perl    2.11-2+b1         NIST SHA-1 message digest algorith
ii  liberror-perl          0.17-1            Perl module for error/exception ha
ii  libexpat1              2.0.1-4           XML parsing C library - runtime li
ii  perl-modules           5.10.0-19         Core Perl modules
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages git-core recommends:
ii  less                          418-1      Pager program similar to more
ii  openssh-client [ssh-client]   1:5.1p1-5  secure shell client, an rlogin/rsh
ii  patch                         2.5.9-5    Apply a diff file to an original
ii  rsync                         3.0.3-2    fast remote file copy program (lik

Versions of packages git-core suggests:
pn  git-arch                     <none>      (no description available)
pn  git-cvs                      <none>      (no description available)
pn  git-daemon-run               <none>      (no description available)
pn  git-doc                      <none>      (no description available)
pn  git-email                    <none>      (no description available)
pn  git-gui                      <none>      (no description available)
ii  git-svn                      1:1.5.6.5-2 fast, scalable, distributed revisi
ii  gitk                         1:1.5.6.5-2 fast, scalable, distributed revisi
pn  gitweb                       <none>      (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to