Arducopter 3.5 build error

Hello,
I am trying to build arducopter 3.5 on linux with make but getting error “not a git repository” while updating modules using git submodule updqte command. Can anyoe telll me whats wrong.

Did you change in to the directory which was cloned from github?

the usual sequence would be:
git clone …
cd ardupilot
git submodule init --update --recursive

The problem is that when i clone code from ardupilot repository it downloads the master repository and i want to clone copter-3.5 version. If i download the Copter-3.5 then it shows build error that i mentioned before.