Question: I am trying to hide a row which contains in one of the cells a specific span element. The following code is what I have so far - but there is no getElementsByTagName for a tr 

What else can I do to get the row? Thanks !

```
<table id='tableContainer'>
<tr><td><span id='xyz'>Hide</span></td></tr>
<tr><td><span id='abc'>Show</span></td></tr>
</table>

container = document.getElementById('tableContainer');
items = container.getElementsByTagName('tr');

for (var j = 0; j < items.length; j++) {
    spans = items.getElementsByTagName('span');
    for (var i=0; i<spans.length; i++) {
        if (spans.id == 'xyz') {
            items.display = 'none';
        }
    }
}

```

Answer: 
ok, one way to do this is to use the `clone --template` option.

Specify the location where the client side hooks will be stored as value to the `--template` switch. The hooks are copied to the clone, and the post-checkout hook is fired immediately!
I'm late but there is a workaround:

1. Capture `git clone` execution and set a variable using `trap set_var_on_git_clone DEBUG` where `set_var_on_git_clone` is a user-defined function. (e.g. <https://gist.github.com/KeyAmam/a6afcabc3a724fc4a541aca7629c3ff6>)
2. Check the variable in `post-checkout` script and do some stuff in the case. Clear the variable at the end of the script. (e.g. <https://gist.github.com/KeyAmam/6a0e8805c0b6a662adb6bcf8118a089a>)

This only works in Bash but you can do a similar thing in other shells.