You have $$\int\sqrt{2-2\cos(x)\,}\,dx.$$ You correctly (though it adds to the work that is necessary) made a substitution with $u=2-2\cos(x)$, so $du=2\sin(x)\,dx$, or equivalently, $du/2\sqrt{1-\cos^2(x)}=dx$. Taking the first equation and solving for $\cos(x)$ gives $1-u/2=\cos(x)$. Now, this gives us $dx=du/\sqrt{1-(1-u+u^2/4)}$, hence we have $$\int\frac{\sqrt{u}}{\sqrt{1-(1-u+u^2/4)}}\,du.$$ Notice the denominator can factor just a bit, so we have $$\int\frac{\sqrt{u}}{\sqrt{u}\sqrt{1-u/4}}\,du.$$ This cancels the $\sqrt{u}$ quite nicely and we get a factor of $2$ outside of the integral after factor $1/4$ out of the denominator. That means we have $$2\int\frac{1}{\sqrt{4-u}}\,du$$ exactly like you have with the exception of the two outside of the integrand. Now you can follow your calculations!
My suggestion (a different technique): multiply by $$\frac{\sqrt{1+\cos(x)}}{\sqrt{1+\cos(x)}}$$ in the integrand (note that this is only $1$, so we're not changing anything). This gives us: $$\sqrt{2}\int\frac{\sin(x)}{\sqrt{1+\cos(x)}}\,dx.$$Now use a $u$-substitution with $u=1+\cos(x)$ and the problem becomes much easier.