[git-users] Error on PUSH

2012-06-22 Thread Sridhar Pandurangaiah
I have created a bare repository on a rackspace server. The repositories 
are stored under /home/git/. When I attempt a PUSH (my first) I get the 
following error message

sridhar@sridhar-Aspire-5745:~/SASTRA-Sridhar/TNCA$ git push origin master
g...@git.sastratechnologies.net's password: 
Counting objects: 183, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (176/176), done.
Writing objects: 100% (183/183), 309.58 KiB, done.
Total 183 (delta 94), reused 0 (delta 0)
*fatal: Unable to create temporary file: Permission denied*
*error: unpack failed: index-pack abnormal exit
*To g...@git.sastratechnologies.net:/home/git/TNCA.git
 ! [remote rejected] master -> master (n/a (unpacker error))
*error: failed to push some refs to 
'g...@git.sastratechnologies.net:/home/git/TNCA.git'

*My bare repository structure on the rackspace server has the following 
permissions (the bare repository was copied onto the server using scp and 
while logged in as root)
drwxrwxr-x   2 root root 4096 2012-06-18 10:48 branches
-rw-r--r--   1 root root  125 2012-06-21 09:54 config
-rw-r--r--   1 root root   73 2012-06-18 10:44 description
-rw-r--r--   1 root root   23 2012-06-18 10:48 HEAD
drwxrwxr-x   2 root root 4096 2012-06-21 09:54 hooks
drwxrwxr-x   2 root root 4096 2012-06-18 10:48 info
drwxrwxr-x 128 root root 4096 2012-06-18 10:48 objects
drwxrwxr-x   4 root root 4096 2012-06-18 10:48 refs

I am not sure which directory GIT is complaining about. I am also unsure if 
changing the ownership from root to 'git' user will solve it. Would 
appreciate any help that would resolve this.

Best regards,

Sridhar

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/9Rp6S6ZF4_EJ.
To post to this group, send email to git-users@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: Error on PUSH

2012-06-22 Thread Sridhar Pandurangaiah

I have resolved this by changing the ownership of the directory to the 
'GIT" and assigning the required permissions using the following shell 
commands

$chown -R git:git /home/git
$chmod 700 /home/git

I guess other users should be added to the 'git' group so that they can 
PUSH and CLONE.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/RPRIVt6H_EAJ.
To post to this group, send email to git-users@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] Gitweb on Rackspace

2012-06-22 Thread Sridhar Pandurangaiah
I am attempting to create an authoritative repository on one of my 
Rackspace servers. I have already created the bare repositories and moved 
them to the directory /home/git on Rackspace. I have a user named GIT (and 
hence a group of the same name) and have created other users in my team and 
assigned them to this group called "GIT". Moved two bare repositories on to 
the Rackspace server using SSH. (Had some teething issues wrt to 
permissions that I resolved, see my previous post). 

I'm attempting to configure gitweb so that I can access my git web 
interface from git.mycompanyname.net. I run several hosts on apache so my 
Vhost configuration for GIT is as follows

   ServerName git.mycompany.net
   DocumentRoot /usr/share/gitweb
   
  Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
  AllowOverride All
  Order allow,deny
  Allow from all
  AddHandler cgi-script cgi
  DirectoryIndex gitweb.cgi
   


I then changed the project directory in /etc/gitweb.conf
$projectroot = "/home/git/";

When I restart the apache server and visit git.mycompanyname.net

I get a *404 - No projects found *page

So I checked the ~/conf.d/gitweb configuration and made changes as 
suggested by some posts on the web and at present it looks like this
RewriteEngine on
#RewriteRule ^/gitweb/([a-zA-Z0-9_-]+.git)/?(?.*)?$ /cgi-bin/gitweb.cgi/$1 
[L,PT]
RewriteRule ^[a-zA-Z0-9_\-]+\.git/?(\?.*)?$ /gitweb/$1 [L,PT]
#

Alias /gitweb /home/git


  Options Indexes FollowSymLinks ExecCGI
  DirectoryIndex /cgi-bin/gitweb.cgi
  AllowOverride None
  AddHandler cgi-script .cgi


But still I have had no luck in gitweb displaying any of my repositories. 
Any help would be appreciated.

Best regards,

Sridhar


-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/LgKmjnQ3Fj0J.
To post to this group, send email to git-users@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: Documentation discrepancy

2012-06-22 Thread Konstantin Khomoutov
On Thu, 21 Jun 2012 18:06:29 -0700 (PDT)
Git User  wrote:

> Thank you.
> Here is what I meant:
> echo alpha > a.txt
> add a.txt
> echo beta > b.txt
> add b.txt
> echo gamma >> b.txt
> 
> Now I have a.txt and b.txt in staged state; and b.txt also has
> unstaged changes.
> I want to commit ONLY b.txt (i.e. I want to commit only 'beta' and
> leave b.txt in modified state with 'beta' & 'gamma' in it, 'gamma'
> being showed as '+gamma' in `git diff'.
> Something like `git commit --staged b.txt'
> In other words, how do we `git commit' just one file from the index
> if there are more than one files in the index.

I think you can't as you effectively wish to have one more level of
indirection (the second index).

I can imagine various workarounds to achieve what you want but they all
are imperfect in one way or another.

The proper way to do this probably would be to write your own porcelain
command that would:
1) Save a list of files with staged changes.
2) Reset all of the staged entries except for those files you specified.
   If any file to reset has unstaged local changes, refuse to proceed.
3) Commit.
4) Re-add the files that were reset on step (2).

-- 
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-users@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] finding unexpected carriage returns

2012-06-22 Thread Michael K Johnson
I am currently working with a set of Git repositories with lots of 
committers across multiple operating systems, and committing from both Git 
and EGit/JGit. This makes for lots of opportunities to get variations in 
line endings in the repository. I implemented .gitattributes specifying 
which files were text files before I learned that JGit doesn't honor that 
(at least, not yet). However, it means that I do have an opportunity to 
check for line termination inconsistency by comparing to the output of git 
check-attr for any particular path, since I intend that to be canonical.

I thought I'd share the small shell script I cobbled together as an example 
of what can be done this way. It doesn't deal with weird filenames or do 
error checking, it's just an example of how to string together some git 
commands to perform this task.

[ -z "$1" ] && {
  echo "usage: $0 "
  exit 1
}

git ls-tree -r $1 | grep 'blob' | \
while read perm type hash file ; do
if git check-attr text $file | grep -v 'unset$' >/dev/null ; then
git cat-file blob $hash | od -a | grep ' cr ' && echo $file ;
fi
done


Perhaps that might be useful to someone someday as a starting point.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/_qcW5SPkpmkJ.
To post to this group, send email to git-users@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] Microsoft User Research: Looking Nationwide for Devs using GIT for upcoming research study --$100 VISA gift card for your participation!

2012-06-22 Thread Gina @ Microsoft
 

Hi GIT group members,


I'm with Microsoft User Research and we're looking nationwide for devs NOT 
using MS Tools for an upcoming remote study done over the phone. We'll 
thank you with a $100 gift card! 

 

If you're interested, you can email me, Gina, at ucco...@microsoft.com with 
the following info!

 

1. Name/Phone Number:

2. Job Title/ Company:

3. How many employees are employed at your company?

4. What languages do you develop in?

5. What type of source code management tools are you currently using?

6. Is your company currently using public cloud services? 

7. Would you be interested in participating in future MS studies?

 

Thanks in advance for your feedback and your time. We appreciate it!

 

Gina Peccia

Microsoft User Research

ucco...@microsoft.com

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/rnS4zBqsYc0J.
To post to this group, send email to git-users@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.