[git-users] how to test git branch ? Can I test a branch in the browser address bar ?

2014-10-05 Thread Oliur Chowdhury
Hi, this is a more of a guidance question:

I've a local git repo which I then push to public_html/stage in siteground 
server.

for each feature or bug issue I create a different branch and merge it with 
the master branch. I then push it to the server.

I want to know if there is anyway I can test different branches in the 
browser url just like i can test the master branch.

So, if I go to http://stage.tista.co.uk/ I can see the magento installation 
(which is my master branch).

Is there a way I can also check different branches under the stage repo by 
going to a url?

I did some googling but I didn't find anything. 

I need a way to test the feature/bug branches to make sure it works before 
merging them with the master or pushing it to live. thanks

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] pack indexes garbase and freezes of fetches

2014-10-05 Thread Vladimir Ivannikov
Hello everybody,

I encountered strange git behaviour which I want to share with your all, so 
this is half bug-report / half workaround

Basically what happens is git (msysgit in particular, but see below) 
freezes for several minutes on simple commands like this:

*git fetch origin refs/changes/25/31125/4  - 2m35s*

Git protocol, no ssh in progress.

If do so in freshly cloned repo - time is 3-4 seconds.

I tried 
*git reflog expire --expire=all --all  git gc --prune=now --aggressive*
it improved situation, but not drastically - *1m39sec*

If copy same repo on linux - it faster (~40 sec), but still slower than in 
newly cloned repo

By carefully investigating the issue I was able to find (kind of) source of 
slowness - quite a bit of *.idx files in .git/objects/pack/*.idx *without 
*corresponding 
*.pack file 
Indeed 
*git count-objects -v*
reports 245 garbage objects (with names in stderr)

If remove this objects manually by
*git count-objects -v 21 1NUL | sed 's/.\+: //g' | xargs rm -rvf  
*(s/NUL/\/dev\/null/ 
on linux)
I have excellent 3-4 sec as expected (and equal to time to fetch in freshly 
cloned repo)

So, I solved *my *issue, but there are still open questions:

   1. (most important one) Why this garbage *.idx are causing such 
   slowness? In my understanding, it should not interfere at all (because it's 
   garbage)
   2. Shouldn't '*git gc*' remove this garbage itself? Especially 
   considering the fact, that it '*git count-objects*' already accounts for 
   it.
   3. What causing this garbage to appear in the first place? Is it normal 
   to have such many garbage files? (although this might be msysgit (i.e. not 
   git) issue)

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.